9 Jun 2013 21:02
Why is 'else' demanded?
张红亮 <zhanghongliang <at> raxtone.com>
2013-06-09 19:02:21 GMT
2013-06-09 19:02:21 GMT
I have a problem. Why is there always else key word in a language? Since I can use return to stop the process of a
flow. I hate to see else statement and I see I can never use else statement that only increase the complexity
of program.
A if statement stands for a condition that should be unique, and it should has no relation with anything
else. So a language does not need else and it should not appear in a program.
Sent from my iPad
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/refactoring/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/refactoring/join
(Yahoo! ID required)
<*> To change settings via email:
refactoring-digest <at> yahoogroups.com
refactoring-fullfeatured <at> yahoogroups.com
<*> To unsubscribe from this group, send an email to:
refactoring-unsubscribe <at> yahoogroups.com
(Continue reading)
RSS Feed