auto merge of #5293 : brson/rust/logging, r=brson

r? @graydon

This removes `log` from the language. Because we can't quite implement it as a syntax extension (probably need globals at the least) it simply renames the keyword to `__log` and hides it behind macros.

After this the only way to log is with `debug!`, `info!`, etc. I figure that if there is demand for `log!` we can add it back later.

I am not sure that we ever agreed on this course of action, though I *think* there is consensus that `log` shouldn't be a statement.
This commit is contained in:
bors 2013-03-13 10:40:07 -07:00
commit 695e9fd13c
228 changed files with 892 additions and 995 deletions

View file

@ -1184,7 +1184,7 @@ pub impl Parser {
}
}
hi = self.span.hi;
} else if self.eat_keyword(&~"log") {
} else if self.eat_keyword(&~"__log") {
self.expect(&token::LPAREN);
let lvl = self.parse_expr();
self.expect(&token::COMMA);