[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Defining APIs, best practices.
- From: Coda Highland <chighland@...>
- Date: Sun, 16 Dec 2012 09:53:15 -0800
On Sun, Dec 16, 2012 at 9:30 AM, Jorge Visca <xxopxe@gmail.com> wrote:
> On Sat, Dec 15, 2012 at 5:04 AM, Coda Highland <chighland@gmail.com> wrote:
>>
>> How is setEnabled ambiguous? (Use setEnabled and not setEnable if your
>> predicate is called isEnabled -- be consistent with your tense!)
>
>
> I interpret setEnabled() as "set as enabled", while being the same as
> setEnabled(nil).
Ah, and that's where we differ -- I read "setEnabled(" as "set the
enabled property to", and thereby get an incomplete sentence if there
isn't a parameter inside.
/s/ Adam
- References:
- Defining APIs, best practices., Jorge
- RE: Defining APIs, best practices., Thijs Schreijer
- Re: Defining APIs, best practices., Jorge
- Re: Defining APIs, best practices., Javier Guerra Giraldez
- Re: Defining APIs, best practices., Coda Highland
- Re: Defining APIs, best practices., Javier Guerra Giraldez
- Re: Defining APIs, best practices., Rena
- Re: Defining APIs, best practices., Andrew Starks
- Re: Defining APIs, best practices., Coda Highland
- Re: Defining APIs, best practices., Jorge Visca