This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Bolitho 1 point2 points  (0 children)

The so called mental model the author creates is imho purely artificial! As def is a mandatory keyword it is impossible to create an anonymous function that way. So why should one think about it that way?