Re:Functools – The Power of Higher-Order Functions in Python
by globular-toast on Friday July 09, 2021 @05:40AM
(#27781996)
One of the harder things for beginners to grasp when learning a second or third programming language is that language is not just syntax. You see it all the time in Python in particular: people writing code like it's C or Java. It's no different to grabbing a French dictionary and transliterating your English sentence to French word by word. It just doesn't work and, in some cases, is completely wrong. Grokking a language means so much more than knowing the key words for doing all the stuff you used to do in your old language.
[ Parent
| on HN ]
Re:Functools – The Power of Higher-Order Functions in Python
by lwouis on Friday July 09, 2021 @05:49AM
(#27782046)
Following your analogy, you will notice that grammar is similar in many European languages. You can rely on subject-verb-object for instance.
Most popular languages these days have aligned patterns for common collections operations. Python stands out IMO.
I wrote a bit more details in a parent comment (https://news.ycombinator.com/item?id=27782030)