Re:We need to talk about parentheses
by erik_seaberg on Monday February 12, 2024 @03:58PM
(#39350406)
The wrong paint won’t stop you from adding a garage, but choosing a complex and non-uniform syntax makes it so hard for end users to extend the language that we almost never try. Imagine how much more readable Java would be if Lombok didn’t need to smuggle each option in a prefix @Annotation.
[ Parent
| on HN ]
if running your java through m4 before you compiled it is a major advantage, doing it is trivial. compiling from a completely different surface syntax is a little more work but still not life-changing
Re:We need to talk about parentheses
by erik_seaberg on Wednesday February 14, 2024 @05:58PM
(#39376779)
The hard part is parsing Java’s grammar with your extensions, and then validly altering a complex AST with many different types of statements and declarations. That’s the only way to make your work read like Java, and why Lombok doesn’t.