Sorry for the late reply -- I have been `on the road' for more than three weeks (no, not vacation).
"Bill Page" <[EMAIL PROTECTED]> writes: | On Fri, Jun 27, 2008 at 4:59 AM, Gabriel Dos Reis wrote: | > | > Bill Page writes: | > | > | panAxiom developers, | > | | > | I just wanted to mention something here that I just learned about how | > | the Axiom interpreter handles option arguments. When discovering how | > | the 'draw' operations in Axiom processes optional arguments, e.g. | > | | > | draw(sin(x), x=1..10, title=="sin function") | > | > Hmm, I thought I already mentioned this in discussions with Ralf ;-/ | > | | Sorry I missed it. Can you please tell me wihich list? When? This discussion happened on the open-axiom-devel list, under the thread 'rep, per and Union' you started. http://sourceforge.net/mailarchive/forum.php?thread_name=fbcd16d40805162050u3a772c76ne2cbf494af6ee272%40mail.gmail.com&forum_name=open-axiom-devel In that message you even expressed surprised at hearing of 'OPTARG' from the interpreter when you used '==' in an expression context. Then, I explained in http://sourceforge.net/mailarchive/message.php?msg_name=206fcf960805170656m3e6aba8ay5ac503d3e1f66636%40mail.gmail.com how the interpreter handles '==' depeending on the context meaning either definition or default argument. The rest is essentially the discussion with Ralf I was referring to when I explaing why I dislike that behaviour. Ralf found that behaviour intuitive and sees no problem. http://sourceforge.net/mailarchive/message.php?msg_name=482EF252.5020402%40hemmecke.de http://sourceforge.net/mailarchive/message.php?msg_name=482F1FCA.4080309%40hemmecke.de [...] | > | What do you think? Do you like that, or is this something that | > | should be implemented in a deeper way? | > | > I don't like it: For example, I cannot '==' to mean `definition' | > in expressions -- but I already had that debate with Ralf. | > | | Perhaps it would be better to provide a function to which == maps, e.g. | | x == y ==> OPTARG(x,y) | | which does by default what the interpreter wants for now but which | allows customization? Well, '==' is a token, not operator. -- Gaby ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel