3 ms·
I use Rust because the program I am writing mainly maps types from type A to type B. A dynamic language has no clue what these types are so you find out what
by justsomeuser 5y ago
I use Rust because the program I am writing mainly maps types from type A to type B.
A dynamic language has no clue what these types are so you find out what you did wrong by refreshing the app at runtime.
In Rust it tells you instantly, so it reduces the iteration time.
Many web apps fit this “map data from A to B” domain, so having a specification for types A and B and getting the compiler to check all variations seems like it would save a lot of dev time.
Out of the type systems available I like Rusts best as it seems to map well to JSON using its enums feature to represent null or polymorphic types.
But you need to pay the learning curve of Rust, which I am still not sure it is worth it.