-
Notifications
You must be signed in to change notification settings - Fork 448
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
FINAL new ABAP keyword - guidance #285
Comments
Hello @prokopp80 , Can you explain what new keyword FINAL are you referring? Is it the FINAL for classes and methods? If yes, it exists for a long time yet. Regards, |
This is referring to the new |
Interesting, like I'd say then, that |
Thank you @fabianlupa for this explanation. It seems like a constant but inside a specific context. |
FINAL in ABAP means the variable value can be changed only at the single write position. https://blogs.sap.com/2022/10/25/finally-a-declaration-of-immutable-variables-with-final-in-abap/ The recommendation should probably be: prefer FINAL to DATA whenever possible. |
I have closed the pull request I made to fix this issue for now. As Björn explained in his comment, the |
Hi colleagues,
recently the new FINAL keyword has been introduced. Do you plan to document a common guidance for it?
In my opinion this was something that I missed in ABAP for long time.
Thank you,
Br. Petr
The text was updated successfully, but these errors were encountered: