2 ms·
I wrote both and I think you are right in terms of unexpected things happening in python. I never had a problem with ruby map/reduce, but any expression more c
by nurettin 8y ago
I wrote both and I think you are right in terms of unexpected things happening in python.
I never had a problem with ruby map/reduce, but any expression more complex than a simple loop becomes hard to write with list comprehensions.
On the plus side, python has type annotations and static type checking with the help of mypy.
It has async/await which was a good strategic move to give javascript users a sense of familiarity. Ruby is somewhat lacking in this aspect.
- mixmastamyk 8y ago> any expression more complex than a simple loop becomes hard to write with list comprehensions By design, at that point write a function or proper loop. This provides an opportunity for documentation.