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
Pipes are a great addition. Matching as well, except for the whitespace issue.
Some of these things seem more for code golfing; particularly `&` and the way method m-chaining can work without an explicit reference to the object.
When introducing syntactical sugar or metaprogramming, I’d ask myself, “it’s 2am and I’ve been paged. The issue lives across 10 20-line methods/functions in this language. How quickly and confidently can I identify it?”
Anything too clever is fun when you’re writing on a lovely spring morning and hell when you’re reading under pressure during an incident. I’d optimize for the latter.
Replies (2)
You can still add braces in Civet, they're just optional but proper indentation is enforced (best of both worlds?)
I used coffeescript for a while and when I had to debug something in my own code I realized how stupid it was and gave up using it. I also thought a programming language that was close to natural language was a good idea until I tried Ruby.