

you will get better answers to your question, and a more productive discussion in general, if you leave your subjective opinion out of the question.
it’s not fully memory safe (there are some programming languages that are even safer, like Ada)?
for example, you might ask instead “why has Rust gotten widespread adoption, that previous safety-focused languages like Ada did not enjoy?”
I’m having trouble following the example the LLM generated for you in your screenshot…I’m not terribly familiar with TypeScript but
MyUnionType
should be a union of types and instead it seems to be a union of…1 or 2?maybe you can share some example code of the unexpected behavior that you wrote, rather than something the fancy random number generator wrote?