-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
abaplint rule for field-symbols naming #6898
Comments
For me, it's an all or nothing decision: All variables have prefixes in AG. PS: I have projects without any prefixes and generally like that better now, but AG has a different history. |
I wouldn't mix it together. At least it is not so for me. Below is just my own opinion. For the variables I'm quite neutral. Sometime I do this or that way. And I can justify it: there is no clear way to distinguish outgoing vars in abap. And also members access is possible without But field symbols are annoying :) because they are local. And used a lot in loops. With multiple access. So I desire to reduce the clutter. And prefixes are clutter here. I just see not any reason to use them in FS. IMO of course. Just to clarify my perspective. |
Personally I think local prefixing is the least useful in short modules, prefixing non-local elements is less offensive but then too I think scope prefixing has the most relevance. I think one way to migrate or have multiple naming standards is to mandate everything consistent within a class, but abapLint can't check that. As to If returning variables are always called Oh, and one bugbear I have is projects that insist on calling them |
all or nothing, keep all or remove all, dont add more coding standards into the same codebase |
@larshp
I think we discussed it before but just to give it another try :)
Can we remove mandatory prefixes for field symbols ?
<>
)It's just so much cleaner without prefixs inside those brackets
"No" would be OK, just wanted to rise this discussion again.
The text was updated successfully, but these errors were encountered: