HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by d0vs | Hacker News Reader
Parent
Full thread
d0vs
·
Why the hell?
View on HN
sp332
·
I don't know, but it bugs people.
https://news.ycombinator.com/item?id=6987309
https://news.ycombinator.com/item?id=6985792
trwired
·
I would hazard a guess that it is because the statement allows for easily adding a `print varname` in your code while debugging.
randlet
·
It's two extra chars to write print(varname). One if your editor auto-inserts matching parens!
sp332
·
Since the space is replaced by the first paren, it's either 0 or 1 more chars :)
Shish2k
·
Shift-9 is more fiddly to type than space though :P
dragonwriter
·
print(varname) is one extra keystroke -- and a whole more convenient than a statement when you want to do it in a lambda for debugging.
Reply on news.ycombinator.com