06-Jun-2013 01:19, Jonathan M Davis пишет:
On Wednesday, June 05, 2013 13:48:40 Walter Bright wrote:
On 6/5/2013 11:36 AM, David Nadlinger wrote:
It also doesn't utilize template constraints, reinvents
isRandomAccessRange && hasSlicing under a poor name,

Didn't want to include all of Phobos, which happens if you import std.range.

Which is why Dmitry was suggesting that we have separate modules for the
traits rather than sticking them in the same modules as the functions.

- Jonathan M Davis


After that I've been toying around with the idea of mini-phobos lately.
It's like keeping a "micro-kernel" skeleton inside of Phobos, user code doesn't have to see this. It's a bit more then just traits/non-traits separation though.

A couple of tiny functions (min/max/pointsTo/...) and a bunch of traits is all that many modules need actually if you limit their hunger for std.stdio/std.format to unittests where appropriate.


--
Dmitry Olshansky

Reply via email to