Skip to content

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