What is Nostr?
npub1yr8…qath
2024-06-03 00:26:12

npub1yr…tqath on Nostr: And am extremely confused with some of new syntax. So if I have a enum with a case X ...

And am extremely confused with some of new syntax. So if I have a enum with a case X I can't simply add a method for a specific case by just doing

enum AST
case Str(v : String) {
def newMethodIWantHere...
}

Seems very weird. Probably doing something wrong again 🤔😮‍💨

#scala
Author Public Key
npub1yr8lcwwxp6wp3yaeja70y2xnyuf930ld6sc3fk5wzdadw3ck8t2q2tqath