Charles Pick
Charles Pick
@crisu83 it wasn't done yet so that'd be really appreciated, many thanks!
@sanily2j which version of the PECL extension are you using?
Unless I've misunderstood this (definitely possible), this seems like a bad idea because presumably it will allow users to spoof typeof checks and causes obvious problems when different libraries create...
> you're creating a struct type not a struct, after all. True, maybe `makeStructType` is better, but it's not ideal. If the consensus is that `new Pixel() instanceof StructType` is...
> Note, though, that neither is sufficient to fully define a struct type: they both create constructors whose instances would be plain old JS objects, without the special internal layout...
This all feels a bit strange compared to how classes in JS normally work. I can't think of another example where `new Something()` would return a new class which extends...
This is why the property names / types should probably be specified via an array if users want explicit ordering, e.g. ``` js var PointType = new StructType([['x', float64], ['y',...
@nikomatsakis I've been trying to come up with a way of dealing with incomplete structs for the lib I'm working on. It's tricky to do it in a safe and...
@nikomatsakis the issue (for me, in my implementation at least) is that deciding whether or not a struct is finalized/fulfilled in this way seems pretty expensive / convoluted. An unfulfilled...
ok, thanks for your comments, I'm just going to try and implement it in the way you're suggesting here and report back if I run into issues.