|
|
|
|
|
by lectrick
4098 days ago
|
|
That might be because Rust might not eat its own dogfood in that department, and build some of its own functionality out of its macro system. But I can see just "knowing" at a glance if it's a macro or not. I think the answer would basically be determined by how much of the language itself uses its own macro system AND what type of macro system it actually is. If it's significant, having special syntax would just look weird. |
|
(There are also valid technical reasons for requiring syntactic distinction, as the sheer flexibility of Rust's macros in their ability to create new syntax run the risk of making it a nightmare to parse if you remove the unambiguous ability of the compiler to drop into macro-parsing mode. These challenges aren't insurmountable, just very hairy.)