PHP also got builtin sumtype and pattern matching https://laravel-news.com/modern-php-features-explained https://news.ycombinator.com/item?id=33357318 D lagging behind most languages now :/