Deleted user

Results 130418 comments of Deleted user
trafficstars

Forwarding is just a degenerate case of a more general problem of creating wrapper functions. The difference is that the wrapper can add or remove some parameters to/from the list...

More examples: ```dart typedef A=({int a, String b}); typedef B=(...A.*); typedef B=(...A.(* hide b)); typedef B=(int c, ...A.(* hide b)); typedef B=(...A.(* show b)); func(...A.*) {/*body*/} func(...A.(* hide a)) {/*body*/}...

@eernstg wrote: > As usual, we'd need to find a good balance between the amount of machinery we're introducing and the amount of benefit that developers will gain from this...

I'd rather have a pseudo-method `default` defined only for parameters, with two variants: `p.default(value)` and `p.default()` for no default. the latter would only be available in collection literals and argument...

@lrhn: the syntax of bulk-declaration of parameters makes it easy to incorporate a `late` qualifier: ```dart class B extends A { B(late A.new.*): super(...); } ``` This means: copy all...

See the discussion of late parameters in #3680

@eernstg: I think "delegation" is a more established name for the concept. Maybe instead of `* ==> obj` you can write more legibly `delegate method1, method2 to obj;` `delegate List.(*...

Fun fact. Here's my dialog with gemini AI. Quote: Me: Example of octal number literal in dart programming language Gemini: ```dart void main() { int octalNumber = 0o177; // 0o...

True. I am not aware of any legitimate use case for decimal literals with the leading zero, so the warning seems well-justified. The problem is that `0o177` literals seem to...

Only DateTime seems legit (though hardcoded dates must be uncommon other than it tests). Maybe that's the use case for `0d`? Also (quoting the docs): "While the 0d prefix is...