Arbitrary abbreviations in phobos considered ridiculous
Timon Gehr
timon.gehr at gmx.ch
Tue Mar 6 12:00:22 PST 2012
On 03/06/2012 07:13 PM, Alex Rønne Petersen wrote:
> (Also, seriously, I think you're over-dramatizing the Java variable
> naming thing; I rarely see names that are as bad as you claim...)
>
It is not only about single names, but also about how many times you
have to spell them out in short intervals.
try{
SqlConstraintViolatedExceptionFactoryWrapper
sqlConstraintViolatedExceptionFactoryWrapper = new
SqlConstraintViolatedExceptionFactoryWrapper(new
SqlConstraintViolatedExceptionFactory(...));
SqlConstraintViolatedException sqlConstraintViolatedException =
sqlConstraintViolatedExceptionFactory.createSqlConstraintViolatedException(...);
throw sqlConstraintViolatedException;
}catch(SqlConstraintViolatedExceptionFactoryWrapperException e){
// ...
}catch(SqlConstraintViolatedExceptionFactoryException e){
// ...
}
Deliberately over-dramatized.
More information about the Digitalmars-d
mailing list