5 ms·
Perhaps a controversial take: it’s difficult to write boring code in the common boring languages because they are not powerful enough to express the problem dom
by pharmakom 4y ago
Perhaps a controversial take: it’s difficult to write boring code in the common boring languages because they are not powerful enough to express the problem domain without accidental complexity.
- klysm 4y agoI agree with this. The biggest thing that’s missing for me is sealed sum types. We’re getting there but progress is slow.
- therealdrag0 4y agoDoes Scala have that?
- erik_seaberg 4y agoScala has sealed traits, which may only be implemented in the same file, and pattern matching must be exhaustive. At a glance, Java 17 has something similar (JEP 409 sealed classes).
- baby 4y agoIt depends what you are trying to write. But I’ve seen people complain about the lack of generics in Golang, and I’ve also seen really great cryptography code in Golang (TLS implementations, etc.) I wouldn’t write a compiler in Golang though.