Skip to content
loading...

re: What's a useful programming language feature or concept that a lot of languages don't have? VIEW POST

FULL DISCUSSION
 

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)
}
code of conduct - report abuse