3 ms·
ad List-Comprehension: The only thing this "feature" ever accomplished, was provide a short-hand to write clever code that would otherwise have required a nest
by usrbinbash 5y ago
ad List-Comprehension:
The only thing this "feature" ever accomplished, was provide a short-hand to write clever code that would otherwise have required a nested for-loop instead. In some cases, the resulting solutions were so clever, that the code was completely unreadable.
ad futures and promises:
The reason why async/await is popular in JS, is not because it's such an awesome way of working around blocking IO, it's because it is the only way to get around the fact that JS is single-threaded.
In golang I simply say `go someFunction()` and get the result over a channel.