~ambrosebs

Recent activity

Re: [PATCH fennel] Reintroduce gensyms to unique renaming machinery 1 year, 6 months ago

From Ambrose Bonnaire-Sergeant to ~technomancy/fennel

> Brilliant; I think this solution gets right to the heart of the
> problem. Nice work.

Thanks Phil!

> That's OK; the lua special is documented as not being reliable when it
> comes to identifiers. I will clarify in the documentation that this
> unreliability goes beyond just kebab->snake mangling. We shouldn't let
>
> that hold us back. =)

Ah, thanks for clarifying.

Honestly, I was a little confused that

Scoping bug with nested let + gensym 1 year, 6 months ago

From Ambrose Bonnaire-Sergeant to ~technomancy/fennel

Hi,

Here's a case where auto-gensym generates correct code, and gensym doesn't.

Here's the buggy case:

(fn returns-2 []
  (let [g (gensym)]
    `(let [,g (let [,g 1]
                2)]
       g)))

generates:

Re: [PATCH v2 antifennel] Flatten associative operations 1 year, 7 months ago

From Ambrose Bonnaire-Sergeant to ~technomancy/fennel

> This works because an idiosyncrasy in Fennel where the type predicates > return their argument rather than true

Ah! I noticed the same useful behavior with Lua's `assert`​.

> Never mind; figured it out. =)

Nice!

Ambrose