Why is 'else' demanded?

张红亮 <[email protected]> Mon, 10 Jun 2013 03:02:21 +0800
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
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:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/