User defined properties signatures
Dicebot via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 21 06:53:11 PDT 2015
On Tuesday, 21 April 2015 at 13:27:48 UTC, Marc Schütz wrote:
> On Monday, 20 April 2015 at 20:22:40 UTC, Jonathan M Davis
> wrote:
>> There may be languages out there which take the the return
>> type into account
>> when overloading, but I've never seen one.
>
> Rust does, as far as I know.
And this is incredibly frustrating approach that harms both
readability and maintainability (you can't cut/paste RHS of an
expression anymore without additional changes to the context). I
have actually mentioned that when doing "first impressions" post
about Rust.
More information about the Digitalmars-d-learn
mailing list