- Current team is very mature in writing code in Typescript, as previous versions of warp is written in TS.
- Typescript has solc-typed-ast lib which is very rich in handling the generated AST after the parsing of solc contracts (eg, nodes operation, metadata about nodes…)
Disadvantages of Typescript:
- The compiled source code of the compiler is in JS which doesn’t enforce the strict types of objects which leads to difficulty in tracing the errors.
- we can’t directly use the functions/APIs implemented in cairo compiler written by StarkWare, which is in Rust.
- strict type checking of objects during the runtime
- Direct use of functions/APIs from the cairo compiler
- Some of us in the warp team is not very familiar with Rust, It’ll take some time to learn it
- Requires a deep inspection of solang (solidity parser in rust) library to see if it is as rich as solc-typed-ast
- language is little more cryptic than typescript (not a deal breaker though!)