Hello !!! > Is he? Sorry, then this is a point where Nathann and I do not agree.
I don't even know what I think anymore. With the turn that events take, I think I don't even need to think anymore. I think that I will think what you think I think, it is much easier for me. > find abstract methods useful. I thought that his main point was: Don't > be intrusive! Do not make code of some people slower just because other > people care about the mathematical properties of some methods. And from > my perspective, the discussion is (or should be) only about the > question: How to care about the mathematical properties without slowing > down other peoples code. Yep. I also defended that "respecting other people's code" also meant "not adding method to the classes they use if the method is not useful for them". If it is only for internal stuff, a hidden (beginning with a '_' works for everybody...). But that was a long time ago and I gave up on #16403. > Do I understand correctly: You would not like that the > @combinatorial_map decorator constructs a database at startup time? I > think that's a valid concern. > > We could try to be clever and introduce an environment variable (or > commandline argument) such that @combinatorial_map creates a database > when this variable is set, and otherwise does nothing at all. > > Hence, people who care about the implicit would-be-database encoded in > the flags could obtain them by explicit request, and all other people > would not be affected at all. > > Would this be a short-term solution? Also from Nathann's perspective? Nathann's perspective (I just asked him) was given in this earlier message about implementing ..... a global variable to enable/disable this feature. https://groups.google.com/d/msg/sage-devel/QRUXmy6UZVo/-A5k4K4A9QMJ But it was answered immediately afterward : "About Nathan's suggestion to have a flag, I don't know if it's such a good idea. The idea is to provide this semantic information to any user of Sage not machines." Truth is, the decorator I have in mind only copies the function and the arguments to some global "list" (that's all) and I am not scared of this cost, given that it is only paid when the class is loaded. Then, there can be a longer computation occurring the first time the database is queried, and this hardly matters for it is only paid for those who actually want to use the db information. Nathann -- 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.