I wish nested methods were more like how `where` works in haskell (lovely underrated feature of the language: scope your function from most general to most specific in terms of readability)
-
-
-
"more like" in what way? (There are so many differences.)
- Show replies
New conversation -
-
- End of conversation
New conversation -
-
Default params make me die inside.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Honestly the feature that gives me more headaches than anything else is people going nuts with type aliases.
-
Define nuts?
- Show replies
New conversation -
-
-
Oh. I love so much nested methods. I think they're essential because it gives us more expressiveness. Private method semantic: shared piece of code. Nested method semantic: improve outer method algorithm readability by giving a name to a piece of code.
-
It helps us separate the what (we're solving) from the how (we're solving it) without misleading the reader by giving the semantic of a private method: no this piece of code is not shared.
- Show replies
New conversation -
-
-
I love nested methods. I can abstract the algorithm in the small and more easily relocate functionality when necessary.
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.