| ▲ | mh2266 8 hours ago | |
> In fact, Swift treats enums as more than just types and lets you put methods directly on it This section was fairly disappointing, that Rust requires you to put "} impl {" between the `enum` and its methods is... not really an interesting point. I think the title of the article is... basically correct, and the high-level point that they're both languages with modern type systems, sum types, pattern matching, and so on is good, but too many of the examples were weak. | ||