Skip to content

add nullable operator#83

Open
nyuichi wants to merge 1 commit intojsx:masterfrom
nyuichi:nullable-operator
Open

add nullable operator#83
nyuichi wants to merge 1 commit intojsx:masterfrom
nyuichi:nullable-operator

Conversation

@nyuichi
Copy link
Member

@nyuichi nyuichi commented Oct 23, 2012

This is a patch to introduce C#-like nullable operator to JSX.
The ? operator provides a short notation for Nullable.:

var a : number?;  // Nullable.<number>
var str : string?;  // Nullable.<string>
var klass : Klass?; // Nullable.<Klass>
var hoge : Klass[][]??[]; // Array.<Nullable.<Nullable.<Array.<Array.<Klass>>>>>

@gfx
Copy link
Member

gfx commented Oct 23, 2012

+1 because "Nullable." is too bothering to type.

@shibukawa
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants