News for hackers. Stuff that matters.
Re:Caramel: an Erlang back end for OCaml by creata on Sunday September 27, 2020 @04:33PM (#24609939)
Yeah, I guess I overreacted to the verbosity β€” it's definitely a huge improvement over the current state of Java. But is there a reason not to add NonNull annotations to the fields of type Expr?
Re:Caramel: an Erlang back end for OCaml by zaltekk on Sunday September 27, 2020 @05:38PM (#24610331)
It’s much more common nowadays to have SpotBugs/Checkstyle treat everything as non-null by default. Then you use Optional where necessary (or maybe @Nullable).
Re:Caramel: an Erlang back end for OCaml by pron on Sunday September 27, 2020 @05:39PM (#24610343)
I'm guessing that at one point or another Java will get nullability types similar to Kotlin's.