On Fri, Dec 12, 2014 at 1:42 PM, Andrey Novoseltsev <novos...@gmail.com> wrote: > On Friday, 12 December 2014 14:35:40 UTC-7, kcrisman wrote: >> >> >> >>> Does anyone have arguments to keep stripping? >>> >> >> Just for reference, the usual argument is that one wants full >> compatibility with the command line (which we don't currently have, >> however). E.g. >> >> sage: a = 4 >> sage: a+a >> 8 >> >> while with no stripping, >> >> {{{ >> a = 4 >> a+a >> }}} >> some kind of syntax error, I guess? >> > > While compatibility is great, it is better when it is achieved by following > some sensible guidelines/standards. If wrong code like the first one is > working fine in one place, it is not exactly a good reason to make it work > in another. "Indentation is very important, but we will let you be sloppy > anyway." is not a good approach, in my opinion.
You could make the same argument against allowing sage: 2+2 or >>> 2+2 as input. They are "wrong code" to Python. Anyway, think of the children. > Also, the notebook analog of > those two commands should be TWO cells, not one, and I have no problems > stripping a blank rectangle in front of the code. It's completely reasonable to assign a variable and do a calculation with it in the same cell. William > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.