-
Notifications
You must be signed in to change notification settings - Fork 69
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
From Relational Operator to Predicate Function #352
Comments
|
Just my opinion, but I find the relational operators far shorter and readable, as is obvious from the list above. Yes, they're not common in other languages but are not hard to learn. Consider a real-world usage: IF contains_any_of( val = sy-msgty sub = 'AEX' ).
vs.
IF sy-msgty CA 'AEX'. String predicate functions are one of the few new ABAP features I have not fully embraced, I just find them awkward and only use them if a functional position is really required.
I am not aware this is in the style guides either. As I said this is just my opinion though, perhaps some may find it useful but I would likely disable this check. I just can't see any benefit to limiting the use of relational operators. |
Let's start a thread in the Clean ABAP. |
How about a new check to convert a relational operator to a predicate function?
Source: https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abencontains_functions.htm
Most of the non-ABAP developers do not understand the ABAP-specific relational operators.
The text was updated successfully, but these errors were encountered: