[OpenSCAD] Extending OpenSCAD from assembler to C or Perlish language and adding standard library

nop head nop.head at gmail.com
Tue Oct 1 03:02:57 EDT 2019

People say it is hard to write algorithms without mutable variables. Does
that mean it is hard to write algorithms in Haskell or does that have them
as well?

On Tue, 1 Oct 2019 at 08:00, nop head <nop.head at gmail.com> wrote:

> Doesn't the current C like for(..;..;)  syntax effectively allow a while
> loop and mutable variables in the loop?
> On Tue, 1 Oct 2019 at 04:51, Doug Moen <doug at moens.org> wrote:
>> 1. Mutable variables.
>> [...] It's not something very high at my personal wish-list at
>> this point [...]
>> This is perhaps the most highly desired feature request I have. Though
>> it's unclear to me how it would be handled in a function context, since
>> `let()` only sets the value of a variable for the parts of a function
>> subordinate to the `let()`.  Also, mutable variables become much more
>> useful with a `while()` conditional loop statement.
>> It would be possible to borrow the syntax that Curv uses for mutable
>> variables. It would fit in to OpenSCAD with only minor changes. You can use
>> assignment statements and while statements inside a function, or inside a
>> list comprehension.
>> https://github.com/curv3d/curv/blob/master/docs/language/Statements.rst
>> _______________________________________________
>> 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/20191001/3afd4c19/attachment.html>

More information about the Discuss mailing list