1 matches bool, 2 matches long
Mehrdad
wfunction at hotmail.com
Fri Apr 26 19:36:18 PDT 2013
On Friday, 26 April 2013 at 21:37:14 UTC, Walter Bright wrote:
> On 4/26/2013 1:59 PM, Andrej Mitrovic wrote:
>> On 4/26/13, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>>> An even better example:
>>
>> import std.stdio;
>>
>> void foo(bool x) { writeln("1"); }
>> void foo(long x) { writeln("2"); }
>>
>> void main()
>> {
>> foo(1); // "1"
>> foo(false ? 2 : 1); // "2"
>> }
>>
>> Kill it with fire.
>
> How about this one:
>
> import std.stdio;
>
> void foo(short x) { writeln("1"); }
> void foo(long x) { writeln("2"); }
>
> void main()
> {
> foo(30000); // "1"
> foo(false ? 40000 : 30000); // "2"
> }
Walter, you're completely missing the point.
The point is that people can live with the consequences of your
short/long example, but they can't do the same with Andrej's
bool/long example.
No matter how right you are, if you keep insisting your way is
correct, D will continue never becoming popular because people
will continue finding it hard to use.
I think at some point it's worth noticing that "ease of use" is
_not_ a linear function of "technical correctness". You may be
right in technicality but that doesn't mean you're right on the
UI side.
More information about the Digitalmars-d
mailing list