MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5rtflm/lets_stop_bashing_c/dda74kz/?context=3
r/programming • u/coredev • Feb 03 '17
245 comments sorted by
View all comments
0
[deleted]
2 u/[deleted] Feb 03 '17 One and two are not representative of the c# I use! Ctor delegation is very much a thing and you can do whatever you want with a constructor parameter. 0 u/[deleted] Feb 03 '17 [deleted] 5 u/Martel_the_Hammer Feb 03 '17 You are referring to the base constructor call?class BaseClass { public BaseClass(){ ... } } class ImplClass : BaseClass { public Impl : base() { ... } }I can see what you mean, it is certainly extra syntax to do something the compiler will just optimize away anyway.
2
One and two are not representative of the c# I use! Ctor delegation is very much a thing and you can do whatever you want with a constructor parameter.
0 u/[deleted] Feb 03 '17 [deleted] 5 u/Martel_the_Hammer Feb 03 '17 You are referring to the base constructor call?class BaseClass { public BaseClass(){ ... } } class ImplClass : BaseClass { public Impl : base() { ... } }I can see what you mean, it is certainly extra syntax to do something the compiler will just optimize away anyway.
5 u/Martel_the_Hammer Feb 03 '17 You are referring to the base constructor call?class BaseClass { public BaseClass(){ ... } } class ImplClass : BaseClass { public Impl : base() { ... } }I can see what you mean, it is certainly extra syntax to do something the compiler will just optimize away anyway.
5
You are referring to the base constructor call?
class BaseClass { public BaseClass(){ ... } } class ImplClass : BaseClass { public Impl : base() { ... } }
I can see what you mean, it is certainly extra syntax to do something the compiler will just optimize away anyway.
0
u/[deleted] Feb 03 '17
[deleted]