These are chat archives for evhub/coconut
data Mydata(foo, bar): def __iter__(self): for i in self._fields: yield getattr(self, i)
foo |> bar |> baz |> bup
@hasufell ADTs actually already support iteration--try iterating over them! As for linebreaks, line continuation in Coconut is done exactly as in Python, using parentheses (or brackets or braces):
(foo |> bar |> baz |> bup)
As for Record Wild Cards, that's an interesting thought--can you raise an issue describing specifically the syntax you'd want to see?
tuple(obj)it didn't work