Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I mean you may equally want

if(disable_ai) { //disable shit }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: