|
|
|
|
|
by barrystaes
617 days ago
|
|
Happy to see this effort. When applying ReactJS in webdev after doing all kinds of engineering in all kinds of (mostly typed) languages in many runtimes, I was so surprised that JS did not actually had a struct/record as seen in C/Pascal. Everything is a prototype that pretends its an object, but without types and pointers, and abstraction layers that added complexity to gain backwards compatibility. Not even some object hack that many OO and compiled languages had. ES did not add it either, and my hopes where in WebAsm. This proposal however seems like the actual plan that i’d like to use a lot. A lot of the code complexity was to get simple guarantees for data quality. The alternative was to not care, either a feature or caveat of the used prototype model. |
|