Re: [Faudiostream-users] Pattern matching and lists in Faust

2020-05-26 Thread Yann Orlarey
Hi Oleg, I agree with you, we should probably think more seriously about introducing a real NIL in Faust! Yann *Yann Orlarey* Directeur scientifique/Scientific director orla...@grame.fr T : +33 (0) 4 72 07 37 00 GRAME - Centre national de création musicale 11 cours de Verdun Gensoul | 69002

Re: [Faudiostream-users] Pattern matching and lists in Faust

2020-05-26 Thread Oleg Nesterov
On 05/26, Oleg Nesterov wrote: > > Yann, Stephane, I am curious if it is possible to change the compiler to > make par(i, 0, expr) work? the patch below seems to work ;) but I am sure you can do something better. Oleg. --- a/compiler/evaluate/eval.cpp +++ b/compiler/evaluate/eval.cpp @@ -919,7

Re: [Faudiostream-users] Pattern matching and lists in Faust

2020-05-26 Thread Oleg Nesterov
On 05/25, Yann Orlarey wrote: > > For example the expression > `()` or `NIL` in Lisp, which indicates an empty list, does not exist in > Faust. Yes. it's a pity ;) Well, to some degree nil = 0:!; resembles the empty list. Say, output(nil) == 0 and process = sin(nil); works "as

Re: [Faudiostream-users] Pattern matching and lists in Faust

2020-05-26 Thread Stéphane Letz
>> > > Thanks. > > This, and the previous discussion, were helpful in shedding light on > an aspect of faust on which the docs are somewhat unclear. > I hope/guess Yann is going to immediately improve this specific question in the documentation ((-; This is the good time since new updated

Re: [Faudiostream-users] Pattern matching and lists in Faust

2020-05-26 Thread James Mckernon
On 5/25/20, Yann Orlarey wrote: > Following the recent exchanges, I would like to bring some clarifications > on pattern matching and lists in Faust. > > Strictly speaking, there are no lists in Faust. For example the expression > `()` or `NIL` in Lisp, which indicates an empty list, does not exis

[Faudiostream-users] Pattern matching and lists in Faust

2020-05-25 Thread Yann Orlarey
Following the recent exchanges, I would like to bring some clarifications on pattern matching and lists in Faust. Strictly speaking, there are no lists in Faust. For example the expression `()` or `NIL` in Lisp, which indicates an empty list, does not exist in Faust. Similarly, the distinction in