The core logic of the vm execution relies on types being union of strings that are defined in instruction.ts. The rationale behind it was expressiveness and readability, but it is more prone to errors (missing/replacing a character as in the test case fixed in #49) and is not 'mainstream'.
The use of enums or const object should be preferred.
The core logic of the vm execution relies on types being union of strings that are defined in
instruction.ts
. The rationale behind it was expressiveness and readability, but it is more prone to errors (missing/replacing a character as in the test case fixed in #49) and is not 'mainstream'.The use of enums or const object should be preferred.