Ah cool!

I really hope this gets somewhere..
It is a really important thing for linear
algebra libraries (which I am writing
in Nimrod but have run in to bugs that
are holding me back so I was looking
around for alternatives).

Cheers!


On Sun, May 25, 2014 at 9:00 PM, Eduard Bopp <[email protected]>wrote:

> On 05/25/2014 07:25 PM, Isak Andersson wrote:
> > Hello!
> >
> > I was asking in IRC if something like this:
> >
> > fn cofactor(m: Matrix<T, R, C>, row, col: int) -> Matrix<T, R-1, C-1>
> {...}
> >
> > was possible. I quickly got the response that generics doesn't work with
> > integers. So my question is, is there anyway to achieve something
> similar?
> >
> > Or would it be possible in the future to do generic instantiation based
> on
> > more
> > than just types.
> >
> > Thanks!
>
> I actually opened an RFC for that feature a couple of weeks ago:
>
> https://github.com/rust-lang/rfcs/pull/56
>
> There are a couple of technical issues that would need to be resolved
> before implementing this, but there's some support to get this feature
> into Rust at some point.
>
> Cheers,
> Eduard
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to