14 years into Scala, I'm experimenting with a new way of formatting my code. I've started column-aligning each opening `(` of explicit/implicit parameter block, and the `:` of the return type in method/class definitions, with a four-space indent for long lines. Liking it so far.
-
-
It means that I'm forced to handle all those error types. The tilde is a way of keeping a working set-algebra on the types, covering the case where the set of types may be empty.
-
I'd love a gist or a tiny blog post with your Result error encoding

- Show replies
New conversation -
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.