On Wed, Jun 22, 2011 at 2:31 AM, Glenn Maynard <gl...@zewt.org> wrote:

> On Wed, Jun 22, 2011 at 4:33 AM, David Levin <le...@chromium.org> wrote:
>
>> Making people use a helper function like that is just making them jump an
>>> unnecessary hoop.
>>>
>>
>> It makes them jump through another hoop to potentially misuse the api.
>>
>
> No, it's another hoop that *everyone* has to jump through to use the API at
> all, so code you write in browser N+1 would also work in browser N where
> fewer classes support transfer.
>

I do understand Glenn's point about convenience, but I generally strongly
prefer APIs that throw exceptions when passed unsupported arguments over
APIs that silently ignore those arguments.

Reply via email to