Re: Bolts 1.4 - added experimental signatures for D

2020-02-19 Thread aliak via Digitalmars-d-announce
On Friday, 14 February 2020 at 21:33:01 UTC, aliak wrote: Hi, [...] Cheers, - ali Ok, you can now model an actual input range with most of it's caveats: interface InputRange(T) { @property bool empty(); @property T front(); @ignoreAttributes void popFront(); } struct MyRange {

Bolts 1.4 - added experimental signatures for D

2020-02-14 Thread aliak via Digitalmars-d-announce
Hi, I've released an experimental implementation of the concept of traits/signatures/protocols-ish. The basics seems to work decently well, with very decent error messages e.g.: source/bolts/experimental/signature.d(111,17): Error: static assert: "Type Y is missing the following members of