Integrated Application Platform › Forums › Internals & Enhancements › More new features – parameters › Re: Re: More new features – parameters
July 31, 2012 at 2:58 am
#934
Keymaster
I just discovered that Google’s Dart language has a similar shortcut for parameters.
class MyClass {
String str;
MyClass(this.str) {
}
Dart’s syntax is virtually identical to Suneido’s, except we can use .str as short for this.str
It’s alway interesting to see different people converge on similar designs.