Context sensitivity

2011-05-03 Thread bearophile
I was away. This is D code adapted from a blog post about C language: http://eli.thegreenplace.net/2011/05/02/the-context-sensitivity-of-c%E2%80%99s-grammar-revisited/ http://www.reddit.com/r/programming/comments/h23h3/the_context_sensitivity_of_cs_grammar_revisited/ Three little D2 programs

Re: Context sensitivity

2011-05-06 Thread Bruno Medeiros
On 03/05/2011 11:18, bearophile wrote: I was away. This is D code adapted from a blog post about C language: http://eli.thegreenplace.net/2011/05/02/the-context-sensitivity-of-c%E2%80%99s-grammar-revisited/ http://www.reddit.com/r/programming/comments/h23h3

Re: Context sensitivity

2011-05-06 Thread Lutger Blijdestijn
bearophile wrote: > I was away. > > This is D code adapted from a blog post about C language: > http://eli.thegreenplace.net/2011/05/02/the-context-sensitivity-of- c%E2%80%99s-grammar-revisited/ > > http://www.reddit.com/r/programm

Re: Context sensitivity

2011-05-06 Thread bearophile
Bruno Medeiros, Software Engineer: > This is why there are code conventions that have different rules for > naming variables/fields and types, so you don't confuse them... Walter has just shown slides in D.announce that explain why sometimes code conventions aren't enough :-) Bye, bearophile

Re: Context sensitivity

2011-05-19 Thread Bruno Medeiros
On 06/05/2011 17:52, bearophile wrote: Bruno Medeiros, Software Engineer: This is why there are code conventions that have different rules for naming variables/fields and types, so you don't confuse them... Walter has just shown slides in D.announce that explain why sometimes code convention

Re: Context sensitivity

2011-05-19 Thread bearophile
Bruno Medeiros: > I wasn't saying code conventions are good enough for all kinds of human > errors, I was just talking about this particular one, of confusing and > overlapping variable and type names. I think in this case some compiler strictness is better than code conventions. Few days ago

Re: Context sensitivity

2011-05-19 Thread Timon Gehr
> Bruno Medeiros: > > > I wasn't saying code conventions are good enough for all kinds of human > > errors, I was just talking about this particular one, of confusing and > > overlapping variable and type names. > > I think in this case some compiler strictness is better than code conventions. Few