|
Posted by Chung Leong on 12/22/05 17:37
Wayne wrote:
> A common Java idiom is:
>
> Foo foo = new Foo();
>
> The convention in Java is that class names begin with an upper-case
> letter and variables begin with a lowercase variable. I can clearly
> see what is happening here.
>
> To get the same meaning if it was case-insensitive, you'd have to do
> something like:
>
> FooClass fooInstance = new FooClass()
>
> Which makes readability worse, not better.
In Delphi, the convention is to begin class name with the letter T.
foo :TFoo
[...]
foo := TFoo.Create();
The readability here is superior here than what you have in Java,
especially for letters where capitalization involves only a size
change: "Window window," "Vector vector," "Stream stream," etc.
Navigation:
[Reply to this message]
|