News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by nixpulvis on Saturday January 31, 2026 @07:17PM (#46842306)
> 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.

Re:Swift is a more convenient Rust by kibwen on Saturday January 31, 2026 @08:01PM (#46842592)
It also assumes that "C-like syntax" is a desirable thing. Many of the worst parts of Rust syntax (and Swift syntax, and Java syntax, and Javascript syntax, and...) are things it took from C.
Re:Swift is a more convenient Rust by isodev on Saturday January 31, 2026 @07:23PM (#46842360)
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.