Re: [File API] Draft for Review

On Thu, Jan 26, 2012 at 11:09 PM, Mike Taylor <> wrote:

> Yes, synthetic keypress have multiple problems--which is why we all use
> libraries to not have to author them by hand.
> Regardless, this doesn't change the fact that window.URL.createObjectURL(*
> *file, true) is more opaque (and for me, harder to remember) than:
> window.URL.createObjectURL(**file, {oneTimeOnly: true})
> or something magical like window.URL.createObjectURL(**file).oneTimeOnly()

Again, this argument is fine, but has nothing to do with booleans.  The
same argument could be made for URL.createObjectURL(file, {expireInSeconds:
1000}) vs. URL.createObjectURL(file, 1000), or any other optional parameter.

Glenn Maynard

Received on Friday, 27 January 2012 13:59:50 UTC