Re: Fetch API

On Sat, May 31, 2014 at 11:06 PM, Domenic Denicola
<domenic@domenicdenicola.com> wrote:
> - Named constructors scare me (I can't figure out how to make them work in JavaScript without breaking at least one of the normal invariants). I think a static factory method would make more sense for RedirectResponse.

What invariants are you concerned about?  Using NamedConstructor is
identical to doing:

```js
class Foo { ... }
let Bar = Foo;
// now I can do "new Foo()" or "new Bar()", to the same effect.
```

~TJ

Received on Sunday, 1 June 2014 17:32:09 UTC