Historical garage maybe. I just remember some old bug in WebKit where let was a 
lot slower than var because it created what was called lexical context which 
affected interpreter speed because of some kind of linear time variable lookup.

Anyway, that stuff doesn't apply to guile versions after 2. Especially since a 
(let () body ...) where the body contains no (define ...) gets converted to a 
(begin body ...) by the optimizer. 

The behaviour of begin Vs let is well specified and any begin outside of a body 
context is just chain of expressions. It just lacks internal definitions. 

-- 
  Linus Björnstam

On Sun, 6 Feb 2022, at 21:13, Stefan Israelsson Tampe wrote:
> Hmm just why conditionals use begin and not let,
>
> On Sun, Feb 6, 2022 at 11:49 AM <to...@tuxteam.de> wrote:
>> On Sun, Feb 06, 2022 at 10:45:54AM +0100, Linus Björnstam wrote:
>> > You need to use ,optimize. 
>> 
>> Thanks you both, Maxime and Linus, for giving me a new lantern :)
>> 
>> Cheers
>> -- 
>> t

Reply via email to