Stephen Adams

Results 98 comments of Stephen Adams

`Box` is mixed in twice. So there are two fields named `value`. We do not yet have a plan for how to implement this efficiently in JavaScript. We could clone...

I'm adding a priority (P2 for now), since it has affected a customer. We should give an error (or implement it fully) but not silently generate bad code.

The operation of multiple mixins is `super` hard to reason about :wink:. Erik's nice example would be much clearer if rewritten using delegation. In https://github.com/dart-lang/sdk/issues/28794 (and https://github.com/dart-lang/sdk/issues/53682) we were mostly...

> Currently, there is no easy way to pass a `List/Uint8List` to the `Blob` constructor. We have to do stuff like: > > ``` > final List bytes = ...;...

I find the proposed style quite a bit less consistent. This example comes from https://github.com/dart-lang/sdk/blob/main/pkg/js_ast/lib/src/nodes.dart Old - there are basically two formats for the visitor methods, one-line and two-line. The...

Our presubmit checks demand that the file is formatted. I'd like to run the formatter with the `--fix-xxx` flags but applied only to the edited elements. If I edit a...

What kind of code differences do you see for dart2js? Historically it was very touchy about inferring the fields of the 'emulated' version which need to be inferred as small...

It is unfortunately not a simple task to change an existing API. `Int64` is used by protocol buffers, so there are many users. We try not to break an API....

I think the answer would depend very much on what operations you are using and which browser and browser version the code is running in. Generally, I would expect `fixnum.Int64`...

There is a [benchmark in the sdk](https://github.com/dart-lang/sdk/blob/master/benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart) that you could run. It benchmarks only the `parse` and `toString()` operations, but it might be a starting point. Perhaps you could benchmark...