Hi Simon, > On 2012-03-28, Florent Hivert <florent.hiv...@lri.fr> wrote: > >> For parameter-less categories like Fields, I don't have a feeling for > >> whether one should teach new users to use the idiom ``X in Fields`` or > >> ``X in Fields()``. I tend to use the later mysefl. > > > > Speed could be a (not so important) argument. > > Not so important??? I take speed very seriously. And by the way, testing > containment is even faster if you assign Fields() to a > constant, e.g.
I'm not saying that speed is not important in general. We where discussing about syntax and teaching to new commers, as opposite to hardcore optimization. In this context I don't think speed is a major argument. Moreover, if needed, "QQ in Fields" could certainly be way optimized (using Cython / better mro handling, etc). So speed *currently* shouldn't be considered as a serious argument for deciding which syntax we need. After, the proper syntax / usage is defined we certainly will think about speed. Cheers, Florent -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org