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 bare readonly type for inherently immutable basic types #462

Closed
jclark opened this issue Mar 25, 2020 · 0 comments
Closed

Add bare readonly type for inherently immutable basic types #462

jclark opened this issue Mar 25, 2020 · 0 comments
Assignees
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design

Comments

@jclark
Copy link
Collaborator

jclark commented Mar 25, 2020

This is an initial part of #189.

Syntactically allow type descriptor of readonly (with no type parameter) with semantics that it allows any value of a basic type that is inherently readonly i.e.

  • simple types
  • string
  • error
  • function
  • service
  • handle
  • typedesc

This is a prerequisite of #463. Next step is #465.

@jclark jclark added Type/Improvement Enhancement to language design Area/Lang Relates to the Ballerina language specification labels Mar 25, 2020
@jclark jclark added this to the 2020R2 milestone Mar 25, 2020
@jclark jclark self-assigned this Mar 25, 2020
@jclark jclark changed the title Add bare readonly type Add bare readonly type for inherently immutable basic types Mar 25, 2020
jclark added a commit that referenced this issue Mar 26, 2020
@jclark jclark closed this as completed in 90310dc Mar 26, 2020
@jclark jclark modified the milestones: 2020R3, 2020R2 Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

2 participants