News for hackers. Stuff that matters.
Re:Why I Switched from Python to Clojure (2016) by dorkusmagnus on Sunday March 24, 2019 @03:42PM (#19478339)
Just think of the parenthesis as loving warm homoiconic hugs.
Re:Why I Switched from Python to Clojure (2016) by anon4242 on Sunday March 24, 2019 @04:38PM (#19478609)
Hehe, when teaching my 8yr-old programming (in Python) I call (function call) parenthesis a hug to explain that a function "hugs" all arguments to it. She seems to get that :).
Re:Why I Switched from Python to Clojure (2016) by rsyring on Sunday March 24, 2019 @05:50PM (#19478990)
This is a fantastic analogy, thank you for sharing! I found myself really struggling to communicate how a function's arguments got passed to it to my daughter and I'm going to try this the next time I need to explain it.
Re:Why I Switched from Python to Clojure (2016) by VladimirGolovin on Monday March 25, 2019 @04:59AM (#19481116)
I'm teaching my 12-yr old daughter Python right now, and this looks like a neat analogy -- I'll try it in a few minutes.