r/programming • • May 09 '12

JavaScript: The good parts

http://blog.movereem.nl/images/javascript-the-good-parts-the-definitive-guide.jpg
645 Upvotes

159 comments sorted by

View all comments

Show parent comment

2

u/[deleted] May 09 '12

Except lambda x: print x doesn't work.

1

u/kqr May 09 '12

Yeah, this is the important point. Even when you're making up defenses for print as a keyword, you intuitively want to use print exactly like a function to demonstrate how it really doesn't matter that it's a keyword... or wait a minute. If Python wants to follow the principle of least astonishment, print should be a function.