4 ms·
That's not a problem with bool arguments, that's a problem with the language and tooling.
by zepolen 4y ago
That's not a problem with bool arguments, that's a problem with the language and tooling.
- xupybd 4y agoThat can be resolved with enums.
- zepolen 4y agoIf your language/tooling and naming is bad then no, enums won't resolve it either: Is this a username or a state? create_user('ADMIN') Same for, could be a variable for the admin username, can't be sure can you: create_user(ADMIN) Even this: create_user(User.ADMIN)