On 23/08/2008, at 1:04 AM, Robert Dodier wrote:

> The Mma operators /. #& -> etc are just doing things that might
> just as well be represented as ordinary functions.
> Wouldn't it be much clearer, and much less hackish, to just make
> them functions and stay entirely within Python?

Not functions.... lisp-style expressions.  With all sorts of lazy  
evaluation and things that I really can't describe in python terms.   
If sage can or does support those expressions that would be really  
useful to Mathematica migrators.

> What's the benefit of parsing a string? Aside from the w00t-factor.

I am going to guess that maybe half of my lines of Mathematica code  
contain a /. somewhere.  I just opened up a random file and had a  
look...  Found one dodgy line with four of them.  Lots of things like:

r[res][t] /. results /. t -> tmax

I suspect that your post is exactly right.  But William wanted to know  
what we miss from Mathematica.  I'm Dave, and I'm really going to miss  
that w00t factor.

D


==================================
David J Philp
Postdoctoral Fellow
National Centre for Epidemiology and Population Health
Building 62, cnr Mills Rd & Eggleston Rd
The Australian National University
Canberra ACT 0200 Australia

T: +61 2 6125 8260
F: +61 2 6125 0740
M: 0423 535 397
W: http://nceph.anu.edu.au/

CRICOS Provider #00120C



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to