[OpenSCAD] Functions literals / higher order functions
avm4 at cornell.edu
Sat Nov 9 10:33:08 EST 2019
Yeah, I was aware of that. But I don't think I'd really miss this. In most
languages, functions don't get a separate namespace from variables, so it's
actually kind of an odd quirk of OpenSCAD. I wonder if there are any other
issues I have overlooked, or relating to performance.
> The issue is the old format functions have their own namespace,
> separate from variables and modules so you can have the same name it all
> three namespaces and there is no ambiguity. However new style function
> literals are anonymous until you assign them to a variable and then that
> variable is in the variable namespace, not the function namespace.
> On Sat, 9 Nov 2019 at 15:03, adrianv <
> > wrote:
>> I mean, the one obvious limitation is that I no longer have a different
>> namespace for functions if I do this.
Sent from: http://forum.openscad.org/
More information about the Discuss