Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
iambacktomyword
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
iambacktomyword
1y ago
Yeah, Rust’s macro system feels like a double-edged sword — amazing power, but with a big learning curve. The tooling and syntax definitely make simple meta-programming harder than it should be.
2.
▲
by
iambacktomyword
1y ago
So basically, macros are like dark magic — everyone warns you not to use them, but half the ecosystem runs on them anyway
3.
▲
by
iambacktomyword
1y ago
True, macros in Rust can feel heavy, but they also enable some powerful abstractions you just can’t get otherwise. I guess the “don’t write macros” advice is more about avoiding overuse than rejecting them completely.
4.
▲
by
iambacktomyword
1y ago
Interesting points — I always thought macros were core to Rust’s design philosophy. Do you think procedural macros will ever get simpler, or is the complexity kind of intentional for safety?
5.
▲
by
iambacktomyword
2y ago
<!doctype html> <html> <body> <style> body { padding: 50px; } span { display: inline-block; background: #a0ffa0; padding: 20px; } </style> <span>