-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Closed
Description
I disagree with the idea that naming a private variable should begin with _. If you really need a private variable why not create an object and wrap your variable with setters and getters. If you use _ and someone thinks they need that variable or method they will use it. I have seen it before lots of times. Conventions work when you are doing ruby and rails type implementation and the conventions are required for things to work right, but when conventions are guidlines there is no stopping people from behaving badly. Also this conflicts with the _this, which someone could easily do this._this.
zhibirc
Metadata
Metadata
Assignees
Labels
No labels