Technically, there is no problem in AS3 with writing a setter without a
getter to implement a write-only property. But I consider write-only
properties to be poor API design. Being able to set something -- but not
ask later what it was you set -- is weird. If I need to know the value
that I set, I shouldn't have to store it myself.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Thursday, April 24, 2008 6:53 AM
To: [email protected]
Subject: Re: [flexcoders] passing parameters to components

 

I am wondering why this is weird?  Could there be a case where someone
wanted to have a write-only property?  I agree that it is pretty
uncommon, but I am wondering if it problematic from an architecture
standpoint?

 

- Kevin

 

On Apr 22, 2008, at 8:37 PM, Gordon Smith wrote:





(BTW, setters without getters are weird.)

 

 

Reply via email to