Navigation Menu

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

Alternative variable declaration syntax #342

Closed
arakov opened this issue Jul 18, 2017 · 4 comments
Closed

Alternative variable declaration syntax #342

arakov opened this issue Jul 18, 2017 · 4 comments
Labels
Design Idea New language feature

Comments

@arakov
Copy link
Member

arakov commented Jul 18, 2017

It is now possible to declare a variable without an explicit type

type<IntNumber> n := 4.
@arakov arakov added Design Idea New language feature Discussion labels Jul 18, 2017
@arakov arakov changed the title Alternative variable declaration Alternative variable declaration syntax Jul 18, 2017
@arakov
Copy link
Member Author

arakov commented Aug 18, 2017

done

@arakov arakov closed this as completed Aug 18, 2017
@arakov
Copy link
Member Author

arakov commented Aug 25, 2017

Reopening

@arakov arakov reopened this Aug 25, 2017
@arakov
Copy link
Member Author

arakov commented Aug 25, 2017

New primitive array declaration syntax:

object& l := object&(3).   // primitive object array
int& a(3).                 // primitive int buffer

Ampersand will indicate that the primitive array declared.

arakov added a commit that referenced this issue Aug 25, 2017
@arakov
Copy link
Member Author

arakov commented Sep 7, 2017

done

@arakov arakov closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Idea New language feature
Projects
None yet
Development

No branches or pull requests

1 participant