James Browning
James Browning
> // Or, if ac.signal is tripped, the EventTarget listener is canceled and unregistered and the subscription is errored or completed Erroring and completing are quite different alternatives, like is...
This idea would also be useful for extending builtins with private fields (to emulate internal slots) to prevent structural typing in builtins. e.g.: ```ts declare partial class ArrayBuffer { #arrayBufferData:...
So another problem today is not all interfaces even have `BlahConstructor` interfaces to actually extend. For example `AbortSignal` is defined inline like: ```ts declare var AbortSignal: { prototype: AbortSignal; new():...
> That said, maybe subclassing Observable is expected to be more common, or maybe there's some reason this is particularly necessary for Observable as opposed to other classes. The main...
> … so that wrapper functions can use their same existing function reference for both, rather than having to instantiate an AbortController. Unlike `.addEventListener`, subscribing to an observable with the...
> Do we nowadays have a demonstration of the synchronous firehose in free software, so I can play around with it and try to understand that problem? Nothing has changed...
> That way I'll be legally allowed to actually work with your code. Yes I wrote it (`take` is basically just a direct implementation of the spec anyway but with...
An alternative to unions/variants would just be to specify that overload resolution happens at *instantiation time*. This would also avoid any call time cost. e.g. Using the blob example we...
This should probably have [serialization steps](https://html.spec.whatwg.org/#serialising-html-fragments) similar to `shouldAppendRegistryAttribute` for `shadowrootcustomelementregistry` as well.
> I thought about the serialization steps, but when I read through these lines in serializing an element, I thought all attributes are serialized automatically. Am I missing something here?...