G-7410: Avoid standalone functions – put your functions in packages.
Minor
Maintainability
Reason
Use packages to structure your code, combine procedures and functions which belong together.
Package bodies may be changed and compiled without invalidating other packages. This is a major advantage compared to standalone procedures and functions.
Example (bad)
1 2 3 4 5 |
|
Example (good)
1 2 3 4 5 6 7 |
|