[OpenSCAD] feedback on "C-style for"

doug moen 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:
> http://forum.openscad.org/feedback-on-C-style-for-tp17512p17514.html
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20160601/ef043c8e/attachment-0002.html>

More information about the Discuss mailing list