Gamar Mustafa
04/13/2024, 3:45 PMclass A(){
constructor(test:String) : this() {
//
}
}
Ben Woodworth
04/13/2024, 4:13 PMA
. Then you won't need to to delegate to a primary constructor, since there isn't one anymoreGamar Mustafa
04/13/2024, 4:14 PMhfhbd
04/13/2024, 4:14 PMBen Woodworth
04/13/2024, 5:03 PMGamar Mustafa
04/13/2024, 5:12 PMBen Woodworth
04/13/2024, 5:23 PMRob Elliot
04/13/2024, 5:53 PMCLOVIS
04/13/2024, 8:03 PMvar
or if it has side-effects, which are both against the goals of the language.
That's why secondary constructors are nothing more than helpers to call the primary constructor, which is the only source of truth.Jacob
04/14/2024, 1:23 AM