Re: Short-circuit warning
- Posted by Jeremy Cowgar <jeremy at co?g?r.com> May 20, 2008
- 642 views
Jason Gade wrote: > > > I think it was a valid warning when short-circuiting was new to Euphoria. I > guess the question is whether short-circuiting is expected behavior by people > new or relatively new to programming? > > Personally, I say do away with it and make it very clear in the docs that that > is how things work. > Short circuiting should be explained in the manual and it should be taught in any elementary programming course. I do not think that Euphoria should consider everyone a newbie or a dummy. It's a programming language. There are some things you should know when programming. Short circuiting is one of those, IMHO. I've not seen any language (I'm sure that it may exist) that has given a warning about short circuiting. That's almost as bad as: Warning: if statement may branch if it's condition is true Um, we know that To me the short-circuit warnings galore just mask a real warning. Makes me want to turn off warnings, but I know that would be bad. -- Jeremy Cowgar http://jeremy.cowgar.com