https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
j

Joris PZ

12/17/2018, 8:07 PM
Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should...
Copy code
enum class Soil {
    `+`, `.`, `#`, `~`, `|`, `x`
}
Well, joke's on me - IDEA accepts it fine, but the compiler panics 🙂
😔 1
k

karelpeeters

12/19/2018, 10:54 PM
Why do you need
x
?
j

Joris PZ

12/20/2018, 5:41 AM
Oh, that meant undefined, not sure if I actually used it but I didn't want to return null or throw on index out of bounds
9 Views