This repository was archived by the owner on Dec 8, 2025. It is now read-only.
should we use types in compilation? #46
Michał Moskal (mmoskal)
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Regular TypeScript does not use types for directing the compilation. The DeviceScript compiler currently does, most crucially when compiling access to roles (they are compiled down to command/report codes, binary layouts etc). This means that role members will not work when the role is casted to
any(or a generic type, or some interface).I think at this point we can either:
We are unlikely to ever reach ES-whatever full compatibility due to resource constraints. Thus there will always be things that are either missing or don't quite work the same way as in ES.
In any case the point should be to cut down surprise factor:
true == "1"- who cares!)All reactions