Comment by nixpulvis
> Swift takes Rust’s ideas and hides them in C-like syntax.
This example doesn't show me any meaningful difference, and Rust also let's you attach functionality to enums.
> Swift takes Rust’s ideas and hides them in C-like syntax.
This example doesn't show me any meaningful difference, and Rust also let's you attach functionality to enums.
Swift tends to overuse enums, for example people would use them instead of namespaces or when they want a function but don’t want to create a class or a struct which in my opinion has always felt like a work-around for language deficiencies.