Re: Why is 'else' demanded?

Colby Callahan <[email protected]> Mon, 10 Jun 2013 07:15:36 -0700
Newsgroups gmane.comp.programming.refactoring
Message-ID <CAHdi5TL5v54QschYJwTF-MQ2ZhWybS8OboAh=x-CLM2+Varo5g@mail.gmail.com>
The else never gets executed or looked at in the case the if statement is
true, so what exactly is the problem with it and what do you replace it
with?


On Sun, Jun 9, 2013 at 12:02 PM, =E5=BC=A0=E7=BA=A2=E4=BA=AE <zhanghonglian=
[email protected]> wrote:

> **
>
>
> 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 statemen=
t
> and I see I can never use else statement that only increase the complexit=
y
> of program.
>
> A if statement stands for a condition that should be unique, and it shoul=
d
> 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
>=20=20
>



--=20
Please let me know if there is anything else I can do to assist you,
Colby Callahan
Web Developer
Recognition Specialties
NiceBadge.com
541.476.3166


[Non-text portions of this message have been removed]



------------------------------------

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]=20
    [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/