Hello,

> > > The main issue has to do with programming style. The for-loop is a
> > > construction from imperative-style programming. Operations like
> > > 'product' above operate directly on functions and return functions.
> > > This is most common in a functional-programming style and might be
> > > used for example in conjuction with another operation such as 'map' to
> > > produce the same results a a for-loop constrcut:

> map(product(Float,wholePart,sin),[1.1,2.2,3.3])
> versus
> [makeprod(wholePart x, sin x)$Product(Integer,Float) for x in [1.1,2.2,3.3]]

And what do you think about a map as :

map (t +-> [|wholePart t, sin t|], [1.1,2.2,3.3])

where [|....|] creates a makeprod with right types.

It's a good thing that record will remain mutable and the other
structure product won't be mutable. So there is no ambiguity.

Have a nice day !

F. the naive guy.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel

Reply via email to