2 ms·
Fair enough, although those types of things seem like they'd need to be explicitly written, not auto-generated by a compiler (like the ones described as existin
by saghm 9y ago
Fair enough, although those types of things seem like they'd need to be explicitly written, not auto-generated by a compiler (like the ones described as existing for Scala)
- simon_o 9y agoThat's the whole point of what Scala is doing. Allow flexibility to support such requirements later on, without forcing people to break source and binary compatibility, unlike in Java, C# etc. That's the reason why you can e. g. implement or override a def with a val.