I think "where things are obvious" is when I try t...
# advent-of-code
a
I think "where things are obvious" is when I try to avoid them. Example: I'll never do
val count: Int = 0
because it's clear it's an int - both by name, and initial value. However, in the case of
var lookingAt = location.at(grid)
someone not closely connected to the code might not immediately know the type of
location
, let alone what
.at()
returns. Just my two cents on whether or not to explicitly declare types.