Tatumizer
Tatumizer
Good example. The algorithm could be fixed though. **Definition**: The macro is called 'well-behaved' WRT renaming of X to Y in the user's code iff such renaming triggers only the...
Could you please provide a concrete example of what "redirect go-to-definition to somewhere else for generated code" means?
Please consider an alternative: ```dart final class NativeFloat64x2List { final Float64List _storage; constructor new(int length) : _storage = NativeFloat64List(length * 2); constructor _externalStorage(this._storage); constructor _slowFromList(List list) : _storage = NativeFloat64List(list.length...
Putting undue emphasis on "factory" is unfair to generative constructors. They deserve more respect! :-) Let's view the issue from another angle. What change would be the easiest to explain?...
"constructor", as long a word as it is, is still shorter than a typical class name. Real class names in flutter (and elsewhere) tend to be rather long because they...
> I'm ready to consider a different name for class ```dart class C { static List single(T value) => [value]; } ``` The idea is that once the method is...
One (potential) problem is about restrictions on type parameters. Example: somebody declared the class like this: ```dart class Foo { static List bar(T value) => [value]; } ``` T in...
Sorry, my mistake. Currently, if you write ```dart class Foo { static List bar(T value) =>[value]; } ``` you will get an error "static members can't reference type parameters of...
Oh, I see! By omitting the `` next to `foo2` and `foo4`, we leave T bound to the class parameter, avoiding the shadowing. Please check the following table: ```dart C.foo2(1);...
And what if class C has more type parameters? ```dart class C { // V is not used by foo5 static (T, E) foo5(T a, E b) => (a, b);...