Skip to content
Discussion options

You must be logged in to vote

Why are you trying to use primary constructors here? They are not intended to be shorthand for regular constructors, their entire point is in capturing the parameter values across the scope of the entire type. Attempting to splat all constructors parameters as captures would subvert that and lead to an awful developer experience. This proposal solves no problems but creates some really bad ones.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@ichensky
Comment options

@333fred
Comment options

Comment options

You must be logged in to vote
2 replies
@ichensky
Comment options

@HaloFour
Comment options

Comment options

You must be logged in to vote
2 replies
@ichensky
Comment options

@HaloFour
Comment options

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