ModuleInfo, factories, and unittesting
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 23 07:09:52 PST 2016
On Friday, 23 December 2016 at 14:43:28 UTC, Chris Wright wrote:
> I *think* you can do that with an ugly API and string mixins
> and only needing to parse to the level of parentheses and
> equality operators.
Yeah, you kinda can, or, of course, you can do stuff like
assertEquals etc. named functions, or string template args like
the existing libraries do.
Just since it is a built in, we can do so much more!
The main hard part would be getting the printing support in the
runtime, but meh you can go SUCH a long way just printing the
built ins, and it doesn't take that much code.... and it could be
under conditional compilation to make it opt out too.
sometimes i confess i want to write a new druntime. maybe i'd
call it "dango"
More information about the Digitalmars-d
mailing list