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

Use READ-ONLY sparingly - new abap command FINAL #336

Closed
foessleitnerj opened this issue Jul 20, 2023 · 2 comments
Closed

Use READ-ONLY sparingly - new abap command FINAL #336

foessleitnerj opened this issue Jul 20, 2023 · 2 comments
Labels
Adjustment Of Rule The issue or PR proposes an adjustment of a rule or set of rules clean-abap

Comments

@foessleitnerj
Copy link

Use READ-ONLY sparingly

Please link here to all relevant sections of the [Clean ABAP guide](https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md)

Description

At the end of the section, there is the comment "To avoid misunderstandings: Protecting variables .... "

Since 7.57 it is possible to create Immutable Variables with FINAL
https://help.sap.com/doc/abapdocu_757_index_htm/7.57/en-US/index.htm?file=abenfinal_inline.htm

@foessleitnerj foessleitnerj added Adjustment Of Rule The issue or PR proposes an adjustment of a rule or set of rules clean-abap labels Jul 20, 2023
@foessleitnerj foessleitnerj changed the title [name of rule] your title here Use READ-ONLY sparingly - new abap command FINAL Jul 20, 2023
@rdibbern
Copy link
Contributor

Please have a closer look into the comment of Björn of the closed PR.

@bjoern-jueliger-sap
Copy link
Member

Discussion of what to do with respect to final is in #285 already, in addition to the PR linked by rdibbern above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adjustment Of Rule The issue or PR proposes an adjustment of a rule or set of rules clean-abap
Projects
None yet
Development

No branches or pull requests

3 participants