Hacker News new | ask | show | jobs
by tyre 8 hours ago
Whitespace-sensitivity has not been adopted by another new mainstream programming language, and I’d ask you to consider why that is. It is not simply a matter of personal preference.

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.

1 comments

Fortunately there are different languages that optimize for different things. I put the things that I like in this language.

You can still add braces in Civet, they're just optional but proper indentation is enforced (best of both worlds?)