Also the whole "don't write macros" is such a hilarious statement given that entire Rust ecosystem is built on them.
Also the whole "don't write macros" is such a hilarious statement given that entire Rust ecosystem is built on them.
> given that entire Rust ecosystem is built on them.
I don't think the people saying "don't write macros" are the same people building an entire ecosystem on top of them
The iced crate has virtually zero macros by design.
C++26 reflection will make this much easier, without having to depend in stuff like the syn crate.
I wonder if going with two macro systems, each with its own syntax and approach, was such a good idea.
Declarative macros are very like regex's: both in that at first they seem incredibly dense and arcane but once you work out how to read them they're actually very simple, and in that the syntax is literally similar in that it's a list of tokens that must match sequentially.
So if we're saying this means regex isn't simple then - having observed that my University's Math course has two semester long Number Theory courses we must conclude that the integers aren't simple either, right ?
And yet, the integers are simple enough that's where we start five year olds, by counting things.
Simple and Shallow are not the same thing.
Recent article this week in German press, as per IQB-Bildungstrend 2024 results, one third of students fail in math exams.
Which reinforces the common culture that math is hard, and it is to be expected not to have great grades at it.
It was just an example of something that gets very hairy for library implementers but is still quite nice for users.