[OpenSCAD] feedback on "C-style for"
doug at moens.org
Wed Jun 1 16:38:02 EDT 2016
Pattern matching assignment is useful everywhere. (But my post was about "C
style for", and I didn't want to digress.)
The other place I would find it particularly useful (in my code, at least)
is for functions that take [x,y,z] points as arguments. Eg,
function f([x,y,z]) = ...;
f([0, 10, 10])
On 1 June 2016 at 16:27, Ronaldo <rcmpersiano at gmail.com> wrote:
> I agree this allows to more concise code. But, why would only mutable
> variable assignment have such a distinct privilege?
> View this message in context:
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss