On 06/19/2013 03:50 AM, Fedor Indutny wrote:
Hi all!

I'm trying to add more generics to my library to replace internal uints with user-supplied enums, but, while possible using current language tools, I found it really complicated and hard to support.

What if instead of attributing every trait and every struct with <S1: T1, S2: T2...> and <S1, S2> respectively, rust will support following language struct:

generic <S1: T1, S2: T2> {

/// code

}

Its mostly a syntax sugar, but it'd help a lot. Thoughts?

Cheers,
Fedor.


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
This seems entirely possible with macros, which are likely going to be the suggested route.

J
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to