language icon indicating copy to clipboard operation
language copied to clipboard

Add rules to allow omission of certain default values

Open eernstg opened this issue 7 months ago • 3 comments

This PR changes the rules about augmentation of constructors such that an incomplete factory is able to defer the decision about implementing the constructor by a redirection or by a body. See https://github.com/dart-lang/language/issues/4172 for details.

eernstg avatar May 28 '25 14:05 eernstg

I like the general direction here, but if we're going to loosen the proposal so that augmentations can fill in default values, I think we should go all the way and let them do it for all functions.

munificent avatar May 29 '25 21:05 munificent

I changed the rules to allow all kinds of augmentable functions (incl. constructors) to specify a default value for an optional parameter in the introductory declaration or in an augmentation, but at most once, PTAL!

eernstg avatar Jun 10 '25 14:06 eernstg

@munificent, WDYT?

eernstg avatar Jun 13 '25 11:06 eernstg

@munificent, this one was rebased around the file renaming operations, PTAL.

eernstg avatar Aug 22 '25 15:08 eernstg