Skip to content

Comment on Generalized Macros

Comments

Really interesting article. Maybe not a good idea as a language feature, but certainly an interesting one.

This is my new favorite typo:

    (defmacaron . lefts [key & rights]
      ~(,;(drop-last lefts)
        (get ,(last lefts) ,(keyword key))
        ,;rights))
We're working on a macro proposal for Dart and I wonder if users would like them more if we called them "macarons".

Oh whoops! That’s what I called them in my prototype so I didn’t shadow Janet’s built-ins. Forgot to update that one when I copied it to the blog post :)

I am diabetic so no, I could not use this feature.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.