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

Introduce "deprecated" feature in SARL #154

Closed
gallandarakhneorg opened this issue Jul 8, 2014 · 4 comments
Closed

Introduce "deprecated" feature in SARL #154

gallandarakhneorg opened this issue Jul 8, 2014 · 4 comments
Assignees
Milestone

Comments

@gallandarakhneorg
Copy link
Member

It may be useful for the SARL developer to have a "deprecated" feature that permits to make the generated Java code as deprecated. Then the feature associted to the issue #153 will output a warning if the deprecated SARL code is used.

@gallandarakhneorg
Copy link
Member Author

LanguageSyntaxTextDeprecated dateReplacement
Java@Deprecatednonono
Scala@deprecated(message="",since="")yesyesno
Rubydeprecate("","",int,int)noyesyes
Xtend@Deprecatednonono
GNU C__attribute__((deprecated))nonono
MS VC__declspec((deprecated))nonono
C++14[[deprecated("")]]yesnono
C#[Obsolete("")]yesnono
Ddeprecated("")`yesnono
VB.net<Obsolete("")>yesnono
Lisp(make-obsolete oldfun newfun)yesnoyes

@gallandarakhneorg
Copy link
Member Author

We should keep in mind the issue #9. Indeed, deprecation and pre/post/invariant conditions are all markers/attributes/annotations on a statement.

We may use a syntax that is common. In think this is one reason why the Java consortium has introduced the annotation syntax: one rule in the grammar for all types of annotations.

@gallandarakhneorg
Copy link
Member Author

This issue should be fixed after the issue #34.

@gallandarakhneorg
Copy link
Member Author

The annotation @Deprecated could be used for deprecate a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant