by rendaw · 1y ago · 0 comments
You can't write a program without knowing that x is a string or a number, your only choice is whether you document that or not.
for a really simple example: languages which allow narrowing a numeric to a float, but also let you interpolate either into a string without knowing which you have.
A statically typed Console.log in JS/TS would be an unnecessary annoyance.