Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
d0vs
· 12y ago · 0 comments
Why the hell?
Comments
[–]
sp332
12y ago
I don't know, but it bugs people.
https://news.ycombinator.com/item?id=6987309
https://news.ycombinator.com/item?id=6985792
[–]
trwired
12y ago
I would hazard a guess that it is because the statement allows for easily adding a `print varname` in your code while debugging.
[–]
randlet
12y ago
It's two extra chars to write print(varname). One if your editor auto-inserts matching parens!
[–]
sp332
12y ago
Since the space is replaced by the first paren, it's either 0 or 1 more chars :)
[–]
Shish2k
12y ago
Shift-9 is more fiddly to type than space though :P
[–]
dragonwriter
12y ago
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.