Benjamin Smedberg wrote: > Taras Glek wrote: > > >> I don't think it's right. Correct way would be to use prototypes and >> instanceOf. File a bug if you agree. >> > > Can I switch() on instanceof? There's also the slight problem that I'm > mixing dehydra types and lazy treehydra reflections in this code, so I need > to be able to have the lazy converter use the same API. > you can switch on .constructor Reason I'm suggesting this way is dehydra is as nice as it is because it makes us of js features, so it's much better to shove data into scripts through js features so field overload doesn't get worse than it is.
Taras _______________________________________________ Dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
