Commenters propose additions and debate keyword syntax
2 Sep 22 9:45 AM · 1d ago · 1 comment · 1 source · development 2 of 7
Early discussion frames the post as 'mostly a good list' and introduces counterarguments. A commenter suggests adding sum types and criticizes the optional braces syntax in C-like languages. The author's proposal to add sigils to keywords draws immediate pushback from readers who worry about readability.
“Mostly a good list! I'd personally add sum types to it. And maybe "don't do the C thing of allowing `{}` to be elided after `if/for/while`", which is a cute syntactic hack that has never, ever earned its keep.”
icefoxBlog author Programming language designer/writer
The whole story postscomments the bright band is this development · numbered dots are the others · click one to jump
What people said 1 voice · verbatim
-
Mostly a good list! I'd personally add sum types to it. And maybe "don't do the C thing of allowing `{}` to be elided after `if/for/while`", which is a cute syntactic hack that has never, ever earned its keep. > Itʼs more my personal opinion, but I dislike bare keywords. I think keywords should come with a sigil to clearly denote them as a keyword…
All 7 developments of Blog post on programming language design principles gains… →
LobstersHacker News