Olzhas Suleimen

Results 77 comments of Olzhas Suleimen

If Dart has binary extensions like this, this would be nice for vector math: ```dart extension binary on Vector with (num value) { Vector operator + { var vector =...

Same as Java anonymous classes. AngularDart [TemplateAstVisitor](https://pub.dev/documentation/angular_ast/latest/angular_ast/TemplateAstVisitor-class.html): ```dart var visitor = TemplateAstVisitor() { @override void visitText(TextAst astNode, [Object? context]) { print(astNode.value.isEmpty ? '' : astNode.value); } }; textNode.visit(visitor); ``` In...

My case: ```dart typedef State = State? Function(Parser parser); State state = fragment; while (index < length) { state = state(parser) ?? fragment; } ```

Will this be possible: ```dart void printXY(({int x, int y, _ /* ignore rest */})) { print('x: $x, y: $y'); } printXY((x: 0.0, y: 0.0)); printXY((x: 0.0, y: 0.0, z:...

Any updates? Should I rely upon this classes? Does an adapter should implement the `Server` class?

Not yet supported. I'll add `await` support and `Template.stream()` after `macro` functions. Next month.

Thanks for the analysis. Which version of Dart do you use? Strange, there should be no differences between platforms; it looks like a Dart issue. I'll try to check this...

also: ```dart switch (someToken.value) { case 'a'..'z': break; default: } ```

@lrhn `'a'..'z'` only for single character: `switch(str[0]) { ... }` -> `ord('a').to(ord('z')).contains(ord(value[0]))`