by dheera · 7y ago · 0 comments
... except I think it's perfectly fine in languages that support named parameters. In fact this isn't even specific to booleans. Say we're using Python,
draw_rect(width = 5, height = 10, top = 5, left = 6)
is much more readable than draw_rect(5, 10, 5, 6) draw_rect(5, 10).at(5, 6)
draw_rect().from(5, 6).to(10, 16)
It's one I'd be careful with though, as it can be easy to end up with something less readable.