• hairyballs@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I’d argue the macros are quite bad:

    • Declarative macros are hard to read, same level as regex
    • Procedural macros require to write a new crate with a ton of boilerplate, sometimes for stuff conceptually really simple (like hash is: apply the same function to every field, then compose the results)

    I agree, though, that it’s better there’re here than nothing. It’s just that there is to be a better solution.