Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread T. Michael Keesey
On 8/22/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > > Well, the idea is that you'd never mix the two syntaxes. Either every > single field uses explicit getters, or every single one uses > property-style access. Fine if you're working by yourself, just using your own code. > An abstract clas

Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread Alan MacDougall
And another point: Suppose you start out making something as a public field and then later realize you need to restrict its value in some way. With properties, this change will make absolutely no difference to the rest of your code. Without properties, you will have to change every instance of "

Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread Ron Wheeler
T. Michael Keesey wrote: On 8/22/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: Further derail! What are people's thoughts on implicit vs. explicit accessors? I prefer explicit ones, but I confess that it's almost entirely because I learned Java before Actionscript. I think a lot of

Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread T. Michael Keesey
On 8/22/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > Further derail! What are people's thoughts on implicit vs. explicit > accessors? I prefer explicit ones, but I confess that it's almost > entirely because I learned Java before Actionscript. I think a lot of it has to do with readability. Co

[Flashcoders] "This is not Java": property accessors

2007-08-22 Thread Alan MacDougall
Further derail! What are people's thoughts on implicit vs. explicit accessors? I prefer explicit ones, but I confess that it's almost entirely because I learned Java before Actionscript. You can't argue that explicit setters are required for a "serious" language, because C# prefers implicit set