Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nullable operator #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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