W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 07 May 2014 19:02:33 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25457-3890-EdXSNT3Dld@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:21 UTC