2 ms·
Oh really? What's the operator for adding two floating point numbers then? The solution to type confusion is not separate operators for every type, it's static
by IshKebab 2y ago
Oh really? What's the operator for adding two floating point numbers then?
The solution to type confusion is not separate operators for every type, it's static types!
- sodapopcan 2y agoHa, I was going to mention this but there is none. `+` is for both ints and floats. OCaml, which is statically typed, has a separate operators for ints and floats, though. I don't want to get into it but Erlang is dynamic by design. There have been several attempts to bring static typing to it over the years which have failed. People are still trying, though!