4 ms·
Why the hell?
by d0vs 13y ago
Why the hell?
- sp332 13y agoI don't know, but it bugs people. https://news.ycombinator.com/item?id=6987309 https://news.ycombinator.com/item?id=6987309 https://news.ycombinator.com/item?id=6985792 https://news.ycombinator.com/item?id=6985792
- trwired 13y agoI would hazard a guess that it is because the statement allows for easily adding a `print varname` in your code while debugging.
- randlet 13y agoIt's two extra chars to write print(varname). One if your editor auto-inserts matching parens!
- dragonwriter 13y agoprint(varname) is one extra keystroke -- and a whole more convenient than a statement when you want to do it in a lambda for debugging.