Re:8 months of OCaml after 8 years of Haskell in production ...
by johnisgood on Tuesday December 03, 2024 @04:03AM
(#42304273)
I think Ada's verbosity is one of its strengths. Cannot say the same for Java, however.
[ Parent
| on HN ]
Re:8 months of OCaml after 8 years of Haskell in production ...
by naasking on Tuesday December 03, 2024 @09:06AM
(#42306135)
There's "verbosity as descriptive clarity", and there's verbosity as in "I already said this, why do I have to repeat myself?" Ada unfortunately still has some of the latter, otherwise I would agree.
Re:8 months of OCaml after 8 years of Haskell in production ...
by johnisgood on Tuesday December 03, 2024 @09:30AM
(#42306407)
I mean, it is supposed to be verbose for descriptive clarity.
Re:8 months of OCaml after 8 years of Haskell in production ...
by speed_spread on Tuesday December 03, 2024 @11:05AM
(#42307653)
Java is really not that verbose if steer out of the 25+ years old conventions that were defined to justify expensive proprietary tooling. Leave all fields package scope or public final, so you don't need getters and setters. On JDK21+ use records and pattern matching. Go procedural + lambda, don't be afraid to use static methods. When OO is required, prefer composition over inheritance. Adopt a proper annotation processor library such as autovalue to eliminate remaining boilerplate.