3 ms·
It's also strange that a language that wants to encourage parallelism requires for loops, and specifies that they always run sequentially. Java 8 can put map/re
by concede_pluto 9y ago
It's also strange that a language that wants to encourage parallelism requires for loops, and specifies that they always run sequentially. Java 8 can put map/reduce with a thread pool in the standard library precisely because it doesn't use a for loop; imagine how tedious and repetitive the Go version would be: https://docs.oracle.com/javase/tutorial/collections/streams/reduction.html https://docs.oracle.com/javase/tutorial/collections/streams/...
- Sharlin 9y agoTo be fair, I don't think Go prioritizes parallelism as much as it does concurrency.