likely good reasons for `class` instead of a `function` closure but I personally haven't seen a super convincing case for a very long time
-
-
Mostly I want contracts for my functions. Flow seems more in that way of thinking.
-
Tweet unavailable
-
Neither atm---was using tcomb but didn't like the errors. Now using a thing we wrote @smallwins/validate/assert ---similar idea
-
Tweet unavailable
-
Perhaps odd but I have no use for try/catch. When my programs throw I want that behavior. Per https://www.joyent.com/node-js/production/design/errors …
-
Tweet unavailable
-
Ya I definitely do not know!!! Just share what works for me and why. Only use types for input so for my use throw/crash desirable.
- 3 more 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.