|
|
|
|
|
by eru
3790 days ago
|
|
Depends on how high you set your standards. Ie Python mostly has higher order functions that work, even though for mostly syntax reasons they interact badly with mutating variables---a bit of sugar would help a lot. In any case, your point stands and complements mine. (Apropos ADTs, did Scala always have them? From what I can tell their syntax is pretty awkward, though. Google's Protobuf, which in some sense denotes a type system, even if not a programming language, did get something like ADTs: https://developers.google.com/protocol-buffers/docs/proto3#o... I am pretty lenient, and would go for anything that resembles a compiler-enforced tagged union. (Think C-style union.)) |
|
http://www.boost.org/doc/libs/1_60_0/doc/html/variant.html ??? (and I think it's supposed to be coming in c++17)