[OpenSCAD] Programming in Functional OpenSCAD
rcmpersiano at gmail.com
Tue Jan 30 18:22:28 EST 2018
The question is how to build things like Delaunay triangulation when
needed. You can't do it without the support of a complex data structure.
2018-01-30 21:16 GMT-02:00 doug moen <doug at moens.org>:
> OpenSCAD uses references to reference-counted, immutable values. Multiple
> variables can point to the same immutable list object. There is no need for
> OpenSCAD to make copies of lists, since there are no operations for
> mutating a list. AFAIK; I haven't read all the code in the interpreter.
> I don't think there's much point in worrying about this, though. Like
> Ronaldo says, just use the simplest possible data structure. If this leads
> to a performance problem, and you want to use a more complicated data
> structure, you should measure the performance to ensure that the more
> complicated code is actually faster. OpenSCAD doesn't have the same
> performance characteristics as conventional languages, so your complicated
> code might be slower.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss