Comment

Comment by anitil

This has been something I've experimented with my own baby langs, even banning precedence altogether and requiring explicit parens in any expression.

I find it annoying to have to remember precedence, even if it does lead to more concise code. I guess there's some elegance in something like `if (a == b = c + d << e & f)` but having to remember what this means overrides any benefit for me. And if you get it wrong you'll end up adding the parens anyway.

I haven't played with this version which seems like a reasonable compromise, but I always enjoy reading zig updates and how they really think through things that other languages assume away

parent anitil 6 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton