Kaleb Hornsby

Results 16 comments of Kaleb Hornsby

python has the [`reversed`][1] function which returns a `reverse_iterator`. The `reversed` function can either take an object that has a `__reversed__` method (analog to `Symbol.reverseIterator`) or an object that meets...

One of the only use-cases that I have for using `Object.setPrototypeOf` is to make callable instances. Take this example: ``` function Prop(value) { function prop(newValue) { if(!arguments.length) return value; value...

@ljharb You cannot subclass Functions and have them callable. But you can set the prototype of a function so that it may have inherited properties on it. I understand that...

A simplified example of adding a prototype to a function: ``` function foo(){} var proto = { bar: function(){} } Object.setPrototypeOf(foo, proto); foo.bar() ``` D3 is one library that sets...

@WebReflection Thanks for your thoughtful reply. I already use the valueOf and toString magic. Thanks for mentioning it, though. What is the appropriate way to tell if `Object.setPrototypeOf` is a...

Is there a way to signify that an array is immutable? If so this should not be an issue for immutable arrays.

Shouldn't this have been fixed in the file https://github.com/w3c/activitystreams/blob/master/test/vocabulary-ex183-jsonld.json instead? And the re-gen the php @gobengo ?

Not to mention the casing is different than the other menu items. The **D** should be lowercase.

What aria role does a todo list have? To me, role="grid" makes the most sense. Also, only the list as a whole should receive tabindex="0", the individual list items should...