On Wed, Feb 23, 2011 at 5:29 PM, rjf <fate...@gmail.com> wrote: > > > On Feb 23, 1:45 pm, Ivan Andrus <darthand...@gmail.com> wrote: > > >> >> > (RJF) I know of no other programming language that requires this. >> >> C++0x will require something similar for templates, so that >> >> std::vector<SomeType<bool>> x; >> >> will parse instead of requiring >> >> std::vector<SomeType<bool> > x; >> >> That said, I don't think many people consider C++ to be an easy language to >> parse. :-) >> >> -Ivan > > that looks similarly nasty.
The worst example I've seen is #if FIRST_MEANING template<bool B> class foo { }; #else static const int foo = 0; static const int bar = 15; #endif [...lots of code...] static int foobar( foo < 2 ? 1 < 1 : 0 > & bar ); courtesy of http://stackoverflow.com/questions/1172939/is-any-part-of-c-syntax-context-sensitive . - Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org