Skip to content

Replace hanlders on localized parts of the computation. #3

@vic

Description

@vic

In fx-rs our Effect Row is totally customizable, we even have lenses to perform operations on the effect context (Context Adaptation). This talk is about subtituting a handler for specific subparts of the computation, for us handlers are provided via the context, so given a current context type we can replace some part of it while keeping the very same structure .

I believe it is totally possible using fx-rs, perhaps we even have some test that does this. And we should invest some time at implementing smoe demo for it. Particularly because the talk mentions how this can be an alternative to typeclasses.

Also in an experimental branch (somehwere in vic's jj repo) our handlers had tags, and we were able to provide a handler via a tag from far away (far meaning, when the context type has grown, but tags were used to "route" or "locate" specific handlers)

https://www.youtube.com/watch?v=LDlnri5r4AE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions