|
|
|
|
|
by kjksf
335 days ago
|
|
It makes sense, historically. They had AI features that were always on. Some people complained so they introduced a flag to, wait for it, disable the ai features. So they didn't think too deeply about it and named the flag "disable_ai" because it mapped into how they were thinking about it. You overstate the problem with negative booleans. It's trivial for them to add a function: fn isAiEnabled() { return !disable_ai }
and just use that. |
|
if(disable_ai) { //disable shit }