Skip to content
Discussion options

You must be logged in to vote

Probably because it wasn't considered that an empty parameterless constructor could be inferred to behave like a primary constructor. It's likely less an intentionally imposed limitation than the a feature of primary constructors that requires primary constructors. The question would be whether or not it's worth revisiting at this point to avoid two characters. Probably not, unless there are other reasons to revisit constructors in which case it could get bundled in if the language team considered it worthwhile.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@CyrusNajmabadi
Comment options

@HaloFour
Comment options

@tacosontitan
Comment options

@HaloFour
Comment options

Answer selected by tacosontitan
@colejohnson66
Comment options

@HaloFour
Comment options

@tacosontitan
Comment options

@colejohnson66
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants