feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Oct 29 2018 : 1:33:38 PM
|
A similar idea has come up for creating default class constructors. The problem is, what do you initialise the variables with? If you are looking at simple built in types then this is one thing, but what about complex data types? Where do the default values come from?
It's not a bad idea, but we would need a plan to consider doing this.
Or are you talking about selecting the default value that the variable should be initialised with? You cannot select the line that generates the warning, since that is not an assignment line, so what if there is no near by code that is good for setting the default value? |
zen is the art of being at one with the two'ness |
|
|