Primary constructors are more than syntactic sugar
Did you know that switching from a "regular" constructor to a primary constructor can change when your fields get initialized? Let's see why that matters.
参与讨论
Did you know that switching from a "regular" constructor to a primary constructor can change when your fields get initialized? Let's see why that matters.