Re: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-04 Thread Stefan Israelsson Tampe
For conditional variables you gave a default value. So then why on earth do you not have an implicit let ? There must be a good reason. On Sat, Feb 5, 2022 at 12:39 AM Maxime Devos wrote: > Stefan Israelsson Tampe schreef op vr 04-02-2022 om 22:40 [+0100]: > > Anyhow conditional defining vars is

Re: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-04 Thread Maxime Devos
Stefan Israelsson Tampe schreef op vr 04-02-2022 om 22:40 [+0100]: > Anyhow conditional defining vars is a common theme in other languages > so I think it was kind of natural to implement if as it was done. AFAIK no Lisp or Scheme except for Guile < 2.0 implements conditionally defining local vari

Fwd: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-04 Thread Stefan Israelsson Tampe
-- Forwarded message - From: Stefan Israelsson Tampe Date: Fri, Feb 4, 2022 at 10:40 PM Subject: Re: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses To: Maxime Devos I tested and yes you are right, in guile conditionals do not have this property

Re: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-04 Thread Maxime Devos
Stefan Israelsson Tampe schreef op vr 04-02-2022 om 21:11 [+0100]: > using an implicit let in conditionals are bad in that you cannot > escape from the let form which means that you loos > conditional defines for example in the toplevel. e.g. [...] While old versions of Guile (Guile 1.8?) did supp

Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-04 Thread Stefan Israelsson Tampe
-- Forwarded message - From: Stefan Israelsson Tampe Date: Thu, Feb 3, 2022 at 5:41 PM Subject: Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses To: Linus Björnstam using an implicit let in conditionals are bad in that you cannot escape from the l