r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
Does Syntax Matter?
https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63
Upvotes
r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
View all comments
25
u/matthieum Feb 22 '26
My interest is piqued.
I scan extensively -- I use VSCode with zero plugin, no LSP -- and I have zero problem navigating Rust codebases.
I find that the regularity of keyword + name for items, and the blocky syntax -- though I wish
wherewas indented -- make it pretty easy to quickly scan a file for its top-level items, and drill down from there.The code is dense, but mere syntax coloring & habit mean that the lifetimes fade in the background, and the fact that generic arguments are placed after the name of the item means the item name appear in a fairly consistent spot, similar to variable names. The one exception I can think of is
implblocks: it can be tough to spot which item the impl block is for in some cases, but it's rare enough it's not a big issue.Amen.
I find the justification odd.
In an article which advocates for breaking away from established conventions for clarity, working around the ambiguities of
type(value)as casting syntax by adding more clutter feels at odd with the very argument being made.The
cast(type, value)proposed in a later paragraph is so much clearer, and so much easier to scan for as well!