Civet: TypeScript superset that favors more types and less typing (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
> Disallow no parens on single argument arrow function
With the large number of changes introduced, everyone bound to disagree with some of them, or how some changes are implemented. That's the downside of doing too much.
I disagree with a few things. I won't belabor it, but for one example:
> Implicit returns, even for multi-statement functions (avoid by specifying a void return type, adding a trailing ; or explicit return
This prevents me from doing command-f "return". And now the semicolon effects the function behavior? That's something easy to miss. It also makes functions with early-returns harder to skim. `return` is colored purple by my editor's syntax highlighting.
``` if (something) { getProperties() } ```
Does my function return if getProperties() returns? This seems hard to debug.
Replies (1)
Implicit returns beat implicit voids, just my opinion. TS also squiggles at you if you have a mismatched return type. Funny how two wrongs can make a right (Coffee + Types).