[OpenSCAD] Any where to find the doc for lc-each, lc-else and lc-for-c ?

Tim V. Shaporev tim.shaporev at auriga.ru
Mon Oct 31 10:03:23 EDT 2016


On 10/31/2016 4:03 PM, Ronaldo wrote:
> I transcribe here an example of the benefits of the if-else I had used a few
> months <http://forum.openscad.org/List-comprehension-filters-tc16069.html>
> ago to argue its need. The following list comprehension filter in the new
> sintax:
>
>> if ( A ) (  if( B ) x  else if (C) y ) else  z

I believe such syntax should be forbidden because it is not obvious what 
is else part of if (C).

Do you mean
A ? (B ? x : (C ? y : undef)) : z

> could be expressed in the old one by:
>>  if ( B || C )  !A ? z :  B ? x :  y

Oh, no, it's something different.

I am quite doubtful if this is really benefit.

Just my $0.02
Tim




More information about the Discuss mailing list