Agree with all the comments like "where are the nd arrays?"
BUT, they have list comprehensions!! One of the main things I miss coming from Python.
BUT, they have list comprehensions!! One of the main things I miss coming from Python.
Another problem is that tons of Go functions return (value, error), and it's not clear how such functions should interact with a "map" function. Return all the errors in a separate slice? Stop at the first error? What if you only want to stop when the error is io.EOF? etc.
I think we'll only see map/filter/reduce if the language is changed to specifically accommodate them. I've experimented with doing this myself, which people tend to view as heresy: https://twitter.com/lukechampine/status/1367279449302007809?...
https://naveenkumarmuguda.medium.com/railway-oriented-progra...