| ▲ | isodev 19 hours ago | ||||||||||||||||||||||||||||||||||||||||
> Do people actually believe that there are too many keywords? Yes they do. Just imagine seeing the following in a single file/function: Sendable, @unchecked Sendable, @Sendable, sending, and nonsending, @conccurent, async, @escaping, weak, Task, MainActor. For comparison, Rust has 59 keywords in total. Swift has 203 (?!), Elixir has 15, Go has 25, Python has 38. > You can still used gcd. Not if you want to use anything of concurrency, because they're not made to work together. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | dagmx 18 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
Most of your listed examples aren’t keywords though. They’re built in types or macro decorators. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | saagarjha 19 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
Task and MainActor are types. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||