namelost
Joined 9 years ago
Joined 9 years ago
They could get such a product out faster than 2019 and it would be better than whatever they will end up announcing. Instead we have to wait a year for Apple to figure out how to make a computer that is 'pretty' and 'innovative' enough for Apple, even when their professional customers don't give a toss how pretty or innovative it is.
The UK has the 2nd-lowest rate of road deaths in the world (after Sweden).
The roads in the UK are not intrinsically safe, they are very narrow both in urban and rural areas which means there are more hazards and less time to avoid them.
However, the UK has strict driver education programme. It is not easy to pass the driving test, with some people failing multiple times. It means that people only get a license when they are ready for it. Drink-driving will also get you a prison sentence and a driving ban.
It amounts to a denial-of-service attack against the language, if you author a popular enough JS library you can screw things up for everybody in perpetuity. That isn't a healthy way to design a language.
Of course if you cut them out of your diet and still eat the same amounts of everything else you will lose weight, that's just thermodynamics!
There may well be some situations where callbacks are tolerable, but any time you have to converse with an external synchronous resource like a filesystem, database or REST API, it's just painful. Making a new function (named or otherwise) for each line of code is not good style, in any language.
Back in 2009, that was an acceptable trade-off, because there were advantages to JavaScript, such as sharing code between client and server.
Now we have promises and we don't have to put up with callbacks anymore (eventually!). FWIW async/await is the syntax, and promises are the runtime, they are not competing features.