3 ms·
Agreed ...and jdk8 includes what was effectively joda-time (jsr-310) now. projectlombok.org also makes a lot of the language syntax ugliness quite bearable.
by latchkey 13y ago
Agreed ...and jdk8 includes what was effectively joda-time (jsr-310) now.
projectlombok.org also makes a lot of the language syntax ugliness quite bearable.
- kevinpet 13y agojdk8 completely breaks the entire value we get out of using joda-time, namely, that instants are unambiguous. It actually recommends using time and date without time zone.
- portmanteaufu 13y agoCould you elaborate on this? I thought that JSR-310 and Jodatime were supposed to be nearly identical. Why would they introduce such a regression?
- grimlck 13y agoIt doesnt recommends using time and date without time zone, it recommends using the right class for the right job. And sometimes the right class doesnt include a timezone Suppose you have a webpage asking users for their birth date. What data type do you store that value in? Hint: You aren't going to prompt the user for the time zone they were born in.
- brown9-2 13y agoIf you like lombok you might also like the Autovalue plugin from Google: https://docs.google.com/document/d/1THRUCIzIPRqFSHb67pHV8KMbo55HphSXqlQcIx9oUiI/edit https://docs.google.com/document/d/1THRUCIzIPRqFSHb67pHV8KMb...
- radiantsand 13y agoThe Lombok stuff is pretty nasty, all kinds of hacks to hook into the compiler internals in unnatural ways. If you want those features just use a language which provides them, rather than awkwardly bolting them onto a language that doesn't.