Join Slack
Powered by
If I have an `enum` class, is it better to declare...
# codingconventions
l
liminal
11/18/2018, 8:49 PM
If I have an
enum
class, is it better to declare it inside a data class (where it logically belongs) or top-level outside of the class declaration?
e
egorand
11/19/2018, 2:03 PM
If it logically belongs to the data class, I'd put it there
l
liminal
11/19/2018, 3:16 PM
that's what i think too. thanks
@egorand
e
egorand
11/19/2018, 3:18 PM
you want correct semantics, above all
2
Views
Open in Slack
Previous
Next