From fc6ba0c28c69105880fc11f436094051c83931f5 Mon Sep 17 00:00:00 2001 From: Onoshko Dan Date: Thu, 12 Jun 2014 02:13:38 +0700 Subject: [PATCH] To-do updated. --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 06818b90..6f532b6a 100644 --- a/README.md +++ b/README.md @@ -361,6 +361,18 @@ Future plans === - Use inline `isset` expression instead function. 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 ) arr[-1]; // last element @@ -382,7 +394,16 @@ Future plans // or 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 class A {