Hacker News new | past | comments | ask | show | jobs | submit login

> Wait, how don't macro need to take escaped sigils?

These are proper (hygienic) syntax macros, much like Scheme's syntax-rules. C's "macros" only work at the token level.

> Is 'do' still a keyword?

I believe it is still a reserved keyword, but not used anymore.




It appears to not be a reserved word at all:

  $ echo 'fn main() { let do = 1; }' | rustc -
runs with just an unused variable warning (if it were reserved it would fail with "error: `do` is a reserved keyword").


It probably should be reserved.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: