I love Dart, I think it's a great language. I hope that Google will start supporting it natively in Chrome.
Learn Dart in 15 Minutes
11–20 of 42 posts
Re: Learn Dart in 15 Minutes
#12I love Dart, I think it's a great language. I hope that Google will start supporting it natively in Chrome.
They are. Check "In Development" section. http://www.chromestatus.com/features/6682831673622528 So in a few months we will have Google's VbScript available in Chrome.
Re: Learn Dart in 15 Minutes
#13This seems rather odd from example 14: // Boolean expressions need to resolve to either true or false, as no // implicit conversions are supported. I'm sure they have good reason for this, does anyone know of the rationale? I think I'd miss patterns like `if (arr.length) { ... }`
I think this is wrong or at least misleading. According to the Ecma standard: Boolean conversion maps any object o into a boolean. Boolean conversion is defined by the function application (bool v){ assert(v != null); return identical(v, true); }(o)
[1] http://blog.sethladd.com/2012/02/booleans-in-dart.html "The only value that is true is the boolean value true. [...] In a boolean context, everything that is not true is converted to false."
Re: Learn Dart in 15 Minutes
#14This seems rather odd from example 14: // Boolean expressions need to resolve to either true or false, as no // implicit conversions are supported. I'm sure they have good reason for this, does anyone know of the rationale? I think I'd miss patterns like `if (arr.length) { ... }`
I rather like that you're forced to be explicit. Often, the (hidden) conversion is a source of bugs or confusion.
Re: Learn Dart in 15 Minutes
#15I love Dart, I think it's a great language. I hope that Google will start supporting it natively in Chrome.
They are. Check "In Development" section. http://www.chromestatus.com/features/6682831673622528 So in a few months we will have Google's VbScript available in Chrome.
Re: Learn Dart in 15 Minutes
#16This seems rather odd from example 14: // Boolean expressions need to resolve to either true or false, as no // implicit conversions are supported. I'm sure they have good reason for this, does anyone know of the rationale? I think I'd miss patterns like `if (arr.length) { ... }`
I think this is wrong or at least misleading. According to the Ecma standard: Boolean conversion maps any object o into a boolean. Boolean conversion is defined by the function application (bool v){ assert(v != null); return identical(v, true); }(o)
The reason it's defined this way is for efficient compilation to JavaScript. Control-flow constructs don't have to perform a type-check, just a null check (which can be left out in cases due to null propagation).
Re: Learn Dart in 15 Minutes
#17I love Dart, I think it's a great language. I hope that Google will start supporting it natively in Chrome.
What's the status on other browsers implementing it? Is it even a possibility?
Re: Learn Dart in 15 Minutes
#18Earlier quoted context omitted.
They are. Check "In Development" section. http://www.chromestatus.com/features/6682831673622528 So in a few months we will have Google's VbScript available in Chrome.
I don't get why people make this VbScript comparison (sneer, actually). Yes, it is a language introduced by a single company, but then again many languages have started that way, and in this particular case there are big differences between VbScript and Dart. I think Dart is a better language. Do you disagree?
Including JavaScript.
Acceptance as a standard usually happens after someone implements it, makes it widely available, and proves its merit, not the other way around (and standards that happen the other way around tend to be dead on the vine.)
Re: Learn Dart in 15 Minutes
#19Re: Learn Dart in 15 Minutes
#20This seems rather odd from example 14: // Boolean expressions need to resolve to either true or false, as no // implicit conversions are supported. I'm sure they have good reason for this, does anyone know of the rationale? I think I'd miss patterns like `if (arr.length) { ... }`