return-optics

Extending Return with Lenses to do fun things in the Elm update function (by toastal)

Return-optics Alternatives

Similar projects and alternatives to return-optics

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better return-optics alternative or higher similarity.

return-optics reviews and mentions

Posts with mentions or reviews of return-optics. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-28.
  • Solid.js feels like what I always wanted React to be
    17 projects | news.ycombinator.com | 28 Feb 2022
    Yeah? I wrote something to deal with it too (https://github.com/toastal/return-optics) 5.5 years ago. You arguably chose the wrong data as `(model, Cmd msg, Maybe extMsg)` instead of `(model, Cmd msg, List extMsg)` which would give you more flexibility and still functions as a monoid on [] instead of Nothing, but allows multiple messages shrug. I tried this approach more recently and it involved me having to encode all of actions in a massive tree and then I still had issues with certain messages including now having to UUID all elements that that previously I didn't need to think about. It was a mess, but the best I could do with the tools at hand.

    If you compare this to Halogen (https://github.com/purescript-halogen/purescript-halogen/blo...) where you still have purity but can set up subscribers and listeners from any component. It's much easier to use and for some components like dialogs, it's much simpler. And this actually isn't the best example because with the latest Halogen, Portals (https://github.com/purescript-halogen/purescript-halogen/pul...) was introduced so you can launch a dialog on the spot instead of even needing to communicate between them at all.

Stats

Basic return-optics repo stats
1
13
10.0
over 6 years ago

toastal/return-optics is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

The primary programming language of return-optics is Elm.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com