I suppose this style is less confused.

    foo(i(10));
    foo(s("test"));

than this one, at least for passing parameters to a function.

    10.foo();
    "test".foo();


13 апреля 2012 г. 14:00 пользователь Niko Matsakis <[email protected]>написал:

> On 4/12/12 9:30 PM, Alexander Stavonin wrote:
>
>> The closest variant can be implemented by using enums, but I can't say
>> that resulted code is nice.:
>>
>
> What is wrong with the impl-based technique I suggested?
>
>
> Niko
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to