Re: concepts v0.0.6: use a run-time interface to specify a compile-time one

2017-05-11 Thread Juanjo Alvarez via Digitalmars-d-announce
On Wednesday, 10 May 2017 at 10:53:59 UTC, Atila Neves wrote: http://code.dlang.org/packages/concepts concepts is a dub package and library that allows one to declare that a struct conforms to a "compile-time interface" such as `isInputRange`. The difference between this and a simple `static

Re: concepts v0.0.6: use a run-time interface to specify a compile-time one

2017-05-10 Thread Luís Marques via Digitalmars-d-announce
On Wednesday, 10 May 2017 at 10:53:59 UTC, Atila Neves wrote: concepts is a dub package and library that allows one to declare that a struct conforms to a "compile-time interface" such as `isInputRange`. Awesome!

concepts v0.0.6: use a run-time interface to specify a compile-time one

2017-05-10 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/packages/concepts concepts is a dub package and library that allows one to declare that a struct conforms to a "compile-time interface" such as `isInputRange`. The difference between this and a simple `static assert(isInputRange!MyType)` is that when the static assert