AvoidFieldNameMatchingMethodName
It is generally a good practice to avoid naming fields the same as method names in order to prevent confusion and improve code readability. This can be achieved by using descriptive and unique names for fields and methods. If there is a need to use the same name for both a field and a method, it is recommended to use naming conventions such as adding a prefix or suffix to distinguish between the two.
原文地址: https://www.cveoy.top/t/topic/fq3a 著作权归作者所有。请勿转载和采集!