1
submitted 5 months ago by symfonystation@kbin.social to c/php@kbin.social

Developers like to use booleans as flags. They're a convenient way to indicate something as on/off, true/false, yes/no. But the problem is that booleans are not clear from calling code exactly what they do. For example: Does anyone in the calling scope have any idea what the defining scope is doing? Absolutely not. The flag

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 28 May 2024
1 points (100.0% liked)

PHP

1 readers
1 users here now

founded 2 years ago