[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65411] Re: [ruby-trunk - Feature #10072] [PATCH] Implement Vector.basis

From: "Martin J. Dürst" <duerst@...>
Date: 2014-10-05 06:35:35 UTC
List: ruby-core #65411
On 2014/10/03 05:51, [email protected] wrote:
> Issue #10072 has been updated by Marc-Andre Lafortune.
>
>
> Looks good, but I'm wondering if we should use named arguments as it's really difficult to remember the order without looking it up.
>
>      Vector.basis(3, 0)
>      # or
>      Vector.basis(size: 3, index: 0)
>
> Not sure.

Why not allow both? Ruby is flexible.

Regards,   Martin.

In This Thread

Prev Next