SAP / styleguides

This repository provides SAP style guides for coding and coding-related topics.
Other
1.66k stars 441 forks source link

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

Closed foessleitnerj closed 1 year ago

foessleitnerj commented 1 year ago

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

rdibbern commented 1 year ago

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

bjoern-jueliger-sap commented 1 year ago

Discussion of what to do with respect to final is in https://github.com/SAP/styleguides/issues/285 already, in addition to the PR linked by rdibbern above.