Note that there are some explanatory texts on larger screens.

plurals
  1. USlrn
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThere are many garbage collected languages (including Java and C#), so Dart would probably have been garbage collected even if JavaScript wasn't (well, at least if it could still be compiled to efficient JavaScript anyway). Being garbage collected isn't something Dart is sorry about, and not something that's going to change (it's not just "for the time being").
      singulars
    2. COA very good reason. Type annotations in Dart are optional, and they are treated as assertions (they are ignored in production mode). That means that a variable does not have a type, so assigning an integer to a variable declared as double must work the same whether the variable is declared double ("double x") or just dynamic ("var x"). This prevents any implicit conversion. In checked mode, the assignment is checked, and since 'int' is not a subtype of 'double', the type assertion fails. You have to do an explicit n.toDouble().
      singulars
    3. COJSON doesn't specify the semantics of its number literals, so it's no more correct to use doubles than integers. Dart has two number types. Anything containing a decimal point or an exponential part must be a double, and everything else is parsed as an integer, which in Dart provides more precision than doubles. This preserves as much information from the JSON number as possible. It does require you to manually use .toDouble if you want all the numbers to be doubles.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload