3 ms·
Instant literals returning java.util.Date instances are a great way to sneak bugs into a codebase that uses immutable values everywhere else.
by technomancy 15y ago
Instant literals returning java.util.Date instances are a great way to sneak bugs into a codebase that uses immutable values everywhere else.
- tensor 15y agoThe mutable methods of the Date class all look to be deprecated. No?
- technomancy 15y agoThat doesn't stop them from being called. As soon as you introduce an object like this, you throw a bunch of important guarantees about your code out the window.
- moomin 14y agoTrue. At least in Clojure you can change the default behaviour.
- deleted 15y ago[deleted]