Hacker News new | ask | show | jobs
by devoutsalsa 296 days ago
I'd love Python if it weren't for whitespace. I wanna cut/paste code into a REPL, and Python makes that difficult.
3 comments

I find that the IPython REPL has downright amazing multiline support. I've always been envious of it when using GHCI. But even the standard Python REPL supports multiline paste just fine. So what exactly are you talking about? Rolling your own?
You can't copy a method from a class and then paste it in the REPL, it will complain about indentation.

Workarounds:

1) copy whole class

2) remove indentation before copying

That's only a problem in the base python interpreter. IPython has handled this well for over 20 years.
Begin/end should be optional. Some things would just be so much easier to follow, map/lambda stuff cleaner.
But the previous commenter just improved the Ruby code by adding whitespace!