4 ms·
It makes it an optional parameter, which means you don't need to pass it. Otherwise every call would need to send an empty string or similar.
by gregoryl 5y ago
It makes it an optional parameter, which means you don't need to pass it. Otherwise every call would need to send an empty string or similar.
- ridiculous_fish 5y agoBut this parameter is supposed to be auto-populated with the text from another parameter.
- deleted 5y ago[deleted]
- wvenable 5y agoIt's only populated if the parameter isn't provided explicitly.
- kevingadd 5y agoYou can pass it manually, and you can invoke this method from other compilers that don't implement the attribute. In those cases you want an explicit parameter and one with a default value.
- ridiculous_fish 5y agoThis explanation makes sense to me. If you invoke this function with reflection, there's no hope of capturing the textual argument from other parameters.