http://radar.oreilly.com/2013/05/dart-is-not-the-language-you-think-it-is.html
at the risk of asking a stupid question:
I have never seen this syntax before:
// Dart
class Point {
num x, y;
Point(this.x, this.y);
String toString() => 'X: $x, Y: $y';
}
is > indicating a reference?
import 'dart:mirrors';
class LoggingProxy {
InstanceMirror mirror;
LoggingProxy(delegate)
: mirror = reflect(delegate);
noSuchMethod(Invocation invocation) {
var name = invocation.memberName;
print('${name} was called');
return mirror.delegate(invocation);
}
}
and what is the colon in:
LoggingProxy(delegate)
: mirror = reflect(delegate);
doing?