Lasse R.H. Nielsen

Results 1594 comments of Lasse R.H. Nielsen

For `contains` on `Iterables`, the collection elements must have primitive equality. (Might restrict it to `List` and `Set`, instead of any `Iterable`.) For `constainsValue` on `Map`, the values must have...

Not sure how auto-generating `part of` would work. The reason for part files having a `part of` is that tools looking directly at the part file can figure out which...

Macros won't save their generated code back to disk. They generate code during compilation, so the code can react to changes in the macro tag, macro implementation or the library...

I generally agree that defaulting to `null` is dangerous. With null safety, it's easier to detect if it happens by accident, but it's still possible to just forget an `else`....

Not in Dart 2. This is a significant change to the object model of Dart. Currently, a Dart object has at most one accessible member with any given name. Because...

Overloading and extension methods are orthogonal. Both allow "adding a method" to a class without breaking an existing method with the same name. If you have both, there is a...

It's not clear what the `from` scope hangs on in language semantic model. Is it part of the function type? If so, does it affect subtyping? Probably not, so most...

Being external isn't by itself sufficient to ignore the style guide, but being bound directly to JavaScript members of the same name probably is. So, only ignore external declarations if...

Could we just not lint if the arguments are not constants?

This reminds me of the discussion about making `const` implicit for Dart 2.0. List literals were the case where there really was not good way to know if the user...