3 ms·
It struck me today that C++ templates really provide a kind of static duck typing. The syntax is hideous but I really like this approach in principle. It's a bi
by cageface 15y ago
It struck me today that C++ templates really provide a kind of static duck typing. The syntax is hideous but I really like this approach in principle. It's a bit like Scala's structural types - almost all of the flexibility of dynamic typing but with the benefits of static typing.
- Deestan 15y ago> almost all of the flexibility of dynamic typing but with the benefits of static typing. Just wait until you try Haskell's type inference. :)