|
|
|
|
|
by kbolino
5022 days ago
|
|
There's nothing wrong with JavaScript. It's a beautiful, powerful language if you know it. All numbers are 64-bit double-precision floating-point. Interacting with binary protocols or cryptographic libraries is painful. All strings are UCS-2, not true UTF-16. Characters outside the BMP are second-class citizens. Those are two issues that I can think of in JavaScript-the-language. The most common use of JavaScript-the-stack, providing interactive functionality in a web browser, is riddled with gotchas like bizarre inconsistencies and arcane corner cases. That's not to say that you can't do great things with JavaScript (plenty of evidence for that), or that the situation isn't changing (Mozilla added arrays of all the various integral types, but the individual elements still get treated as floating-point when extracted). But you have to be very careful (or use a framework made by someone who was careful), which IMHO makes it anything but "beautiful". |
|