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

variable declaration / assign declaration reconsideration #7

Closed
dalance opened this issue Dec 21, 2022 · 1 comment
Closed

variable declaration / assign declaration reconsideration #7

dalance opened this issue Dec 21, 2022 · 1 comment
Labels
lang Language design

Comments

@dalance
Copy link
Collaborator

dalance commented Dec 21, 2022

variable declaration and assign declaration seems to be similar. It may be confusable.
Additionally, visilibity of variable declaration may be less than other declarations because it doesn't have any keyword.

// variable declaration
a: logic [10];

// assign declaration
assign a = 1;

// assign declaration with type
assign a: logic [10] = 1;

Alternative idea.

// variable declaration
let a: logic [10];

// variable declaration with binding
let a: logic [10] = 1;
@dalance dalance added the lang Language design label Dec 21, 2022
@dalance
Copy link
Collaborator Author

dalance commented Dec 23, 2022

#27

@dalance dalance closed this as completed Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

1 participant