Re:Python 2.x vs 3.x use survey
by gizmo686 on Tuesday December 31, 2013 @01:24PM
(#6991948)
That is the approach that Haskell takes. If the repl responds to ^C by aborting whatever line it was evaluating then infinite results are little more than annoying, and you quickly learn to restrict what it prints to the first few elements (in python this would just involve appending [:n]). Ultimatly this is a question of which uses you want to optimize. Personally, I find Haskell's approach more useful as a calculator.
A middle ground that I have not seen is automatically evaluating the first few elements and showing those as part of the <object> output.
A middle ground that I have not seen is automatically evaluating the first few elements and showing those as part of the <object> output.