Skip to content

[Scala 3] Use implicit fns to enforce side-effect boundaries #28

Description

@japgolly

Side-effects are meant to appear in observations, and actions.

A potential problem is that observations then contain pure values (the actual data observations) and DOM references for use by actions. When Scala 3 comes out, implicit function types can be used to enforce side-effect capabilities such that the parts of the obs that are impure can be marked as such and be made callable only from actions and not assertions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions