3 ms·
> taking a static language and adding dynamic typing (e.g.`auto` in C#) Assuming you meant C++ - no, auto is not a even a tiny bit dynamic. It's still fully st
by agluszak 2y ago
> taking a static language and adding dynamic typing (e.g.`auto` in C#)
Assuming you meant C++ - no, auto is not a even a tiny bit dynamic. It's still fully static typing, but with type inference.
The compiler will still prevent you from calling a method which doesn't exist.
- cobertos 2y agoAh yes, my mistake. `auto` is C++. I was thinking of `dynamic` and `var` in C#.
- needlesslygrim 2y agoUnfortunately, while `dynamic` is used for dynamic typing in C#, `var` is just type inferenfe like `auto` in C++.