Redundancies often reveal bugs
Jonathan M Davis
jmdavisProg at gmx.com
Fri Oct 1 00:12:10 PDT 2010
On Thursday 30 September 2010 23:33:26 Kagamin wrote:
> bearophile Wrote:
> > errors will be found
> > often hide bugs
> >
> > situations like x=x; reveal true bugs like:
> >
> > class Foo {
> >
> > int x, y;
> > this(int x_, int y_) {
> >
> > this.x = x;
> > y = y;
> >
> > }
> >
> > }
> > void main() {}
>
> Yes, fields and locals in camelCase is a bug.
??? Why on earth would it be a bug to have variable names in camelcase?
Camelcase is purely a stylistic issue - and one which most people adhere to.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list