this post was submitted on 25 Apr 2026
9 points (80.0% liked)
Programming
26901 readers
302 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Agreed on all points except possibly semicolons. Automatic semicolon inference has a very big language footprint, similar to the range syntax that the author disliked.
That said, I don't think the vararg suggestion belongs in this list of syntax changes. For this feature to be useful, it has to be at least powerful enough to replace
format!, but the current type system isn't even remotely expressive enough to do this. I imagine this would require something like C++-style templates or comptime reflection, which goes well beyond syntax changes.I added the author's other texts to my reading backlog too. Looks interesting.
Thank you for letting me know your thoughts!
Maybe not "very big", but I agree with your point in principle.
The reason why I think it is worthwhile (compared to e. g. range syntax) is that we are paying for it anyway already:
Good error reporting hinges on parsing not strictly the language that's defined, but understanding the language that people actually write – and people forget
;all the time.So from my POV I'm turning an error reporting step (that I'd have to implement anyway) into something more useful.
To be honest, if all the fancy formatting stuff requires a macro, so be it.
I just don't want to need macros for creating a list and so on.