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

parser: deprecate old attribute syntax & update remaining (missed) attributes #19879

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

joe-conigliaro
Copy link
Member

@joe-conigliaro joe-conigliaro commented Nov 15, 2023

Add a deprecation warning for the old attribute syntax. After a decided upon amount of time, support for the old syntax will then be completely removed.

Should this deprecation be a warning or an error? It would be nice to push for all code to be migrated, and the old syntax removed as soon as possible.

🤖 Generated by Copilot at f12abe9

Warn users about deprecated attribute syntax with square brackets in vlib/v/parser/parser.v. Suggest using the new syntax with at-signs instead.

🤖 Generated by Copilot at f12abe9

  • Add a warning message for deprecated attribute syntax using square brackets (link)

@joe-conigliaro joe-conigliaro changed the title parser: deprecate old attribute syntax parser: deprecate old attribute syntax & update remaining (missed) attributes Nov 15, 2023
vlib/v/parser/parser.v Outdated Show resolved Hide resolved
@spytheman
Copy link
Member

Should this deprecation be a warning or an error?

Neither. It will be best for it to be a notice for say a week, then a warning for another week, and then an error, so that people can have time to upgrade.

Co-authored-by: Delyan Angelov <delian66@gmail.com>
@spytheman spytheman merged commit 1e3d382 into vlang:master Nov 15, 2023
54 checks passed
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.

2 participants