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

todd.ginsberg

12/05/2019, 6:49 PM
Looks like I'm the only one (so far) to have gone full sealed classes. 🙃
k

karelpeeters

12/05/2019, 7:47 PM
I was debating making classes for the instructions, but the loop was still pretty short.
t

todd.ginsberg

12/05/2019, 10:43 PM
Eh, it was probably overkill. I could have used functions, but I think the way I have it lays out cleaner rather than a when with a bunch of functions.
👍 1
e

Evan R.

12/06/2019, 7:51 PM
I used sealed classes! It feels nicer to work with than arbitrary instruction pointer offsets.
👍🏻 1
4 Views