[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string> missing?
From: |
Eli Zaretskii |
Subject: |
Re: string> missing? |
Date: |
Wed, 03 Jun 2015 22:53:31 +0300 |
> From: Nick Andryshak <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> Date: Wed, 03 Jun 2015 15:34:14 -0400
>
> >> What good reasons are there specifically to keep the '>' function?
> >> What does '(> A B)' do that '(< B A)' doesn't?
> >
> > If you want to argue for removal of one of them, feel free.
>
> Perhaps my comparison was not explicit enough: it was intended to make
> you think about why both < and > exist when one is clearly "enough", and
> then apply those same reasons to the issue at hand.
>
> So, why do both exist?
Because they do. The cause is lost in history.
> Of course consistency is not a /requirement/, I never claimed it was.
> But I think we would agree that it's usually a good goal to strive
> towards because inconsistent leads to confusing and a bad user
> experience.
No, I don't agree.
> Having one comparison operator without the other is simply confusing to
> developers. If I'm writing code where '<' exists and works, I believe
> it's reasonable for me to assume that '>' will also. Apply this same
> logic to string< and string>.
That's exactly the point: there's no need to apply the same logic to
both cases.
And don't forget that you also have compare-strings, which can do
both.
- Re: string> missing?, (continued)
- Re: string> missing?, Tassilo Horn, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Andreas Schwab, 2015/06/03
- Re: string> missing?, Alan Mackenzie, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?,
Eli Zaretskii <=
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Jay Belanger, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Jay Belanger, 2015/06/03
- Re: string> missing?, Thibaut Verron, 2015/06/03
- Re: string> missing?, Stefan Monnier, 2015/06/03
- Re: string> missing?, Thibaut Verron, 2015/06/04
- Re: string> missing?, Nicolas Richard, 2015/06/04
- Re: string> missing?, Thibaut Verron, 2015/06/04
- Re: string> missing?, Stefan Monnier, 2015/06/04