This is Anilm2's TypePad Profile.
Join TypePad and start following Anilm2's activity
Anilm2
Recent Activity
@Félix Cloutier
You can, in fact, make assignments in IF statements easily in most of the languages you listed. I'd never thought of using 'yoda conditionals' to prevent it, but it would work. If you wrap the assignment in ()s it is valid, this would happen if you are bracketting multi conditionals.
if ( (a == null) || (a < b) )
if ( (a = null) || (a < b) )
both valid, one of those does an assignment.
New Programming Jargon
Stack Overflow – like most online communities I've studied – naturally trends toward increased strictness over time. It's primarily a defense mechanism, an immune system of the sort a child develops after first entering school or daycare and being exposed to the wide, wide world of everyday sne...
Anilm2 is now following The Typepad Team
Jul 21, 2012
Subscribe to Anilm2’s Recent Activity
