Why Ruby?
Jacob Carlborg
doob at me.com
Sun Dec 19 07:53:48 PST 2010
On 2010-12-19 03:13, Walter Bright wrote:
> JRM wrote:
>> you could write:
>> sort!(@1>@2)(x);
> [...]
>> I think this idea (or something similar) is worth consideration. It is
>> simply a small extension to an already existing feature that would
>> give D a terser syntax for lambda's than most of the other languages
>> we've been discussing.
>
> but:
>
> sort!("a>b")(x);
>
> is just as short! And it already works.
Apparently it has several flaws as other have mentioned in this thread.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list