|
|
|
|
|
by zimbatm
3297 days ago
|
|
I am not a fan of `cast` (also seen in other languages as well) as it leads to reductionist thinking. There are usually more than one way to convert from one type to another. How is Float to Int rounded? Shouldn't String to Int return conversion errors? Just looking at `cast` means I have to learn what the language decided to default to. |
|