News for hackers. Stuff that matters.
Re:There are three different meanings for the static keyword... by cema on Monday August 23, 2010 @12:44AM (#1625877)
No pain, it is simply reused.
Re:There are three different meanings for the static keyword... by KeithMajhor on Monday August 23, 2010 @02:31AM (#1626027)
As far as I know, a language with less keywords lends itself to a faster parser. That's the motivation behind using "auto" for type inference in C++0x, "auto" is already a keyword.
Re:There are three different meanings for the static keyword... by pbhogan on Monday August 23, 2010 @08:05AM (#1626528)
The difference is negligible. Complexity of grammar (not the same thing) is probably the big cost factor. The big thing there is usually ambiguity of a statement within a single context that has to be resolved. Static is not such a case because there are three distinct contexts. But when a parser has to read many tokens ahead just to figure out where you're going with a term, that's what slows things down.