DEV Community

Discussion on: What's a useful programming language feature or concept that a lot of languages don't have?

alpercugun profile image
Alper Cugun-Gscheidel • Edited on

I miss Swift's strongly typed enums with associated values a lot in other languages (Go, Python etc.).

From the textbook:

enum Barcode {
    case upc(Int, Int, Int, Int)
    case qrCode(String)