Declare Members at top of Class or Just Before Use? |
[eluser]n0xie[/eluser]
[quote author="OliverHR" date="1286828043"][quote author="n0xie" date="1286696727"]One usually doesn't 'declare' variables.[/quote] I mean declaring in general programming terms. Declaring Variables What use would declaring a variable have in a dynamic weak typed language? [quote author="n0xie" date="1286696727"]The right way to do it, is to declare them at the top of your class so that whenever another developer looks at your class.[/quote] I think is better to use comments for this. [/quote] You use comments to declare class properties? |
Welcome Guest, Not a member yet? Register Sign In |