Post ATRm0z8Mn73hQJ0xOK by tiesselune@g33ks.coffee
 (DIR) More posts by tiesselune@g33ks.coffee
 (DIR) Post #ATRm0z8Mn73hQJ0xOK by tiesselune@g33ks.coffee
       2023-03-09T15:26:00Z
       
       0 likes, 1 repeats
       
       I'm making a custom derive #macro in #rust :rust: for #reindeer 🦌  and it feels like I'm writing a compiler... Which in some way, I am. It's very interesting though. The tough part is having understandable errors for the final user, and have them show up on the right part of their IDE. I think I'm gonna write a tutorial about it, because it's been really hard to get into it and find beginner-friendly content without it being very basic. The way I understood how it worked is looking at real-world projects with real proc macros, and search every type on the doc until I understood it, but it lacked... pedagogy 👨‍🏫