[OpenSCAD] eval( ) ???
doug at moens.org
Wed May 13 14:19:24 EDT 2015
Miro said: "I'd rather see that function names and variables are saved in
the same scope".
That's what I want as well. This would allow functions to be first class
values: you can pass them as arguments to functions, return them as
results, and store them as elements of a list. No arbitrary restrictions.
On 13 May 2015 at 13:16, Miro Hrončok <miro at hroncok.cz> wrote:
> I'd rather see that function names and variables are saved in the same
> scope, even though it might get backwards incompatible.
> Miro Hrončok
> Telefon: +420777974800
> 2015-05-13 18:55 GMT+02:00 runsun <runsun at gmail.com>:
> > If I didn't use the keyword "Visual Basic", but present it as just an
> > will you have the same resentment?
> > To me, borrowing idea from other language doesn't mean the entire
> > is going toward it. It all depends on how to implement to fit needs.
> > Aside from that, using set for func/mod assignment does have its down
> > The following does look weird :
> > some_module( arg1, set arg2= some_func )
> > So, alternatively, we can use a func specifically designed for this (this
> > time I won't say where the idea is from :) ):
> > x1 = abc; // assign parameter abc
> > x2 = function( abc ) ; // assign function abc
> > $ Runsun Pan, PhD
> > $ -- OpenScad_DocTest: doc and unit test ( Github, Thingiverse )
> > $ -- hash parameter model: here, here
> > $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly
> > ________________________________
> > View this message in context: Re: eval( ) ???
> > Sent from the OpenSCAD mailing list archive at Nabble.com.
> > _______________________________________________
> > OpenSCAD mailing list
> > Discuss at lists.openscad.org
> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss