More on this here: https://idris2.readthedocs.io/en/latest/reference/records.html …
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Very cool! Without doing much research on this, over the years I noticed that this is a pain point in Haskell. How come that this feature landed in Idris so fast, but is not available in Haskell? Are there any hidden drawbacks? Is it because the Idris compiler is newer?
-
It involved a small breaking change since '.' already means a couple of things, and there's a lot of options how to resolve it (as you see in the Haskell discussion). But it is still somehow easier for us to "just change stuff" if we think it's a good idea.
End of conversation
New conversation -
-
-
I love the explicit ‘constructor’ syntax.
-
It's for consistency with the other record-like things, being interfaces. We don't yet have a way for constructing things without the constructor name though.
End of conversation
New conversation -
-
-
built-in lenses when?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Any plans for copatterns, then?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
reminds me of Agda; ducks.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is magic
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.