News for hackers. Stuff that matters.
Re:My Vision of D’s Future by EvenThisAcronym on Wednesday October 16, 2019 @12:08PM (#21271941)
Yes, or if you don't want to use a template function, for whatever reason, you can wrap the result of iota(1000) into an InputRangeObject (see https://dlang.org/phobos/std_range_interfaces.html#InputRang... for an example).

> I don't like how the conditions are detached from type definitions

I can understand that; it's something that takes a bit of getting used to. See https://dlang.org/concepts.html for an explanation of template constraints and why they were designed this way.

There are no comments on this comment yet.