4 ms·
One thing I love about C++ is it (mostly) stops me making type errors, compared to dynamic languages - "compile and it works". Adding type constraints makes pro
by andyferris 3y ago
One thing I love about C++ is it (mostly) stops me making type errors, compared to dynamic languages - "compile and it works". Adding type constraints makes programming safer, easier, and results in better compilation.
You can add other constraints (e.g. temporal constraints) and get similar benefits, on top of the above.
- ReflectedImage 3y agoIt also means you only get one third of the stuff done. Nothing "compiles and it works". That just means you suck at finding bugs :p
- tored 3y agoSome dynamic languages do have type constraints these days, e.g. PHP.