[Bug 25457] Adding "AutocompleteError" to error names table

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25457

--- Comment #7 from Dan Beam <dbeam@chromium.org> ---
(In reply to Domenic Denicola from comment #6)
> Let's pretend you were writing in a language that primarily used synchronous
> code for this sort of thing. E.g. Java or C#, before their recent shifts to
> async, or Ruby and Python, where async is a minority.
> 
> If you called requestAutocomplete(), and the user cancelled, what would you
> expect? A return value of `false`? A thrown exception? Something else?
> 
> That should guide the answer here.

I kinda think exceptions are an anti-pattern, so I'll go with "return something
to signal/explain the error".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 7 May 2014 19:02:34 UTC