2 ms·
They are not arguing about the stdlib including them, but the api they choose. Instead of parseFloat(str) that tries with a system dependant comma or period, ha
by matsemann 5y ago
They are not arguing about the stdlib including them, but the api they choose. Instead of parseFloat(str) that tries with a system dependant comma or period, have the decimal type be a parameter or have two explicitly named functions.
Same with dates. Don't try lots of formats on an arbitrary string, force the user to specify the expected format somehow.