Joe Clay
Posted on March 26, 2018
I'm (slowly) working my way through Crafting Interpreters, and trying to put together a design for my little interpreted language. Thinking about the syntax has got me curious - do you prefer for a language to have:
- Braces and semicolons (C, JavaScript, Rust)
- Braces and no semicolons (Go, Wren)
- Semicolons and no braces (I'm not actually sure anyone does this?)
- No braces and no semicolons, with significant whitespace (Python)
- No braces and no semicolons, with no significant whitespace (Lua)
- Some other wacky design I've not thought of...
Personally, I tend to prefer the explicitness of option 1, but at the same time I don't really like that {}
has a double meaning (is it a scope, or is it an object literal?). How about everyone else?
💖 💪 🙅 🚩
Joe Clay
Posted on March 26, 2018
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.