Short-circuit warning

new topic     » topic index » view thread      » older message » newer message

Is this warning really valid:

Warning: ../bin/indent.ex:53 - call to matches() might be short-circuited

Well, maybe valid, but useful? For instance, I specifically made the if
statement to short-circuit, that's the way I want it. I program all the time
counting on short circuits and do not really feel as though I need a warning
about it. I thought short-circuits were a benefit?

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu