To-do updated.
This commit is contained in:
parent
efe3183540
commit
fc6ba0c28c
21
README.md
21
README.md
|
|
@ -361,6 +361,18 @@ Future plans
|
||||||
===
|
===
|
||||||
- Use inline `isset` expression instead function. status: done
|
- Use inline `isset` expression instead function. status: done
|
||||||
- `some is NaN` to `isNaN(some)` status: done
|
- `some is NaN` to `isNaN(some)` status: done
|
||||||
|
- operator `?` instead `isset`, fix the operator with function call
|
||||||
|
- operator `?.`
|
||||||
|
- operator `?` to sign an argument as not-required
|
||||||
|
|
||||||
|
int sqr(int x) => x ** 2;
|
||||||
|
|
||||||
|
sqr(2); // 4
|
||||||
|
sqr(); // Exception
|
||||||
|
|
||||||
|
int sqrt(int x?) => x ** 2;
|
||||||
|
sqr(); // NaN
|
||||||
|
|
||||||
- Negate array accessor ( getter )
|
- Negate array accessor ( getter )
|
||||||
|
|
||||||
arr[-1]; // last element
|
arr[-1]; // last element
|
||||||
|
|
@ -383,6 +395,15 @@ Future plans
|
||||||
|
|
||||||
Object data = someData;
|
Object data = someData;
|
||||||
int data.getFriendsCount() => this.friends.length;
|
int data.getFriendsCount() => this.friends.length;
|
||||||
|
|
||||||
|
- intarface
|
||||||
|
|
||||||
|
inerface UserProfile {
|
||||||
|
String name, email;
|
||||||
|
Date birth;
|
||||||
|
String info?;
|
||||||
|
}
|
||||||
|
|
||||||
- classes
|
- classes
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user