4 ms·
Only noticed this in the release post, but the `record` feature is neat: https://crystal-lang.org/api/0.25.1/toplevel.html#record(name,*properties)-macro https:
by thomasfedb 8y ago
Only noticed this in the release post, but the `record` feature is neat: https://crystal-lang.org/api/0.25.1/toplevel.html#record(name,*properties)-macro https://crystal-lang.org/api/0.25.1/toplevel.html#record(nam...
- yxhuvud 8y agoIt's been around for a long time, but perhaps not documented.
- thomasfedb 8y agoThe clever bit seems to be that, being a macro, it can accept an undefined constant as if it was an argument, and then define that constant. Neat.