Jonathan Rezende

Results 91 comments of Jonathan Rezende

@eernstg could views statically implement a class and be returned from a method? I've implemented [js_bindings](http://pub.dev/packages/js_bindings) that expose the HTML stuff through `package:js`. However, I am not able to correctly...

maybe change the `for-in` to also add room to [patter matching](https://github.com/dart-lang/language/issues/2107#issuecomment-1035358001)

> So the question is also "do we want yet another tiny extension of constant expressions, or do we put the resources into non-nullable types", etc. Now that we have...

I think this would connect better with overloaded methods. If passing `null` means something right now then you could have another version of the same method without the parameter to...

> User copyWith({String?|Unset name, int?|Unset age}) => User( > name: name is Unset ? null : (name ?? this.name), > age: age is Unset ? null : (age ?? this.age),...

Yeah, my original post was to find an alternative to if null and if not null. The example just to foment the idea. Edited the post and title. Currently checking...

```dart // this foo = foo == null ? bar : foo; // became this foo ??= bar; ``` I am assuming that the reasoning for the shorthand is because...

using `foo == null` gives me a feeling that I am checking the equality of a hardcode constant ie `bool isOdd(int n) => n == 1 || n == 3`...

@benoit-ponsero is the method copy done by reflection?