Niko Matsakis
Niko Matsakis
Well, I guess in this respect there is one *slight* advantage to `struct` -- it conceptually lumps all the fields into one "item" in the list, and that feature 'interferes'...
This seems like a no-brainer. PRs would be welcome on this point!
@glaebhoerl > (What does it mean when a P-essential is blocked on a P-nice-to-have?) Are you referring to #4? This particular issue is not blocked on #4, I don't think,...
@ests basically yes =)
And please do!
Yes, perhaps that is true. I was aware of possibility of spoofing but didn't consider "typeof" to be a "security" measure, but perhaps that is incorrect. Or at least, people...
Hmm, I still feel that, of the available options, `new StructType` is the best choice. After all, a new object is always returned, and it is indeed a new struct...
> This all feels a bit strange compared to how classes in JS normally work. Maybe, I'm not sure what is the most analogous situation in JS. > I can't...
(I haven't thought hard about the polyfill question, but I thought @dherman or perhaps others had some polyfills for the current setup. Not sure what they did in this situation.)
@tschneidereit Some further thoughts. First, it seems to me that if `StructType` is not a meta-class, then it should be called just `Struct` (just like `Array` and `String` are not...