Avoid using short names for ObjectScript functions

CachéQuality release 
1.0.0
Id 
OS0004
Rule type 
Severity 

Info

Info
SQALE characteristic 
  • Maintainability
    • Readability
Tags 
coding-guidelines, confusing
Remediation function 
Constant/issue
Remediation cost 
15min

Many ObjectScript functions have a short name in addition to their regular name.

However, using these short names can be confusing, especially for new developers, and harm code readability.

Therefore, instead of writing:

    set x = $i(x, 1)

it is advised to write:

    set x = $increment(x, 1)