On 09/10/15 1:12 AM, Per Nordlöw wrote:
On Thursday, 8 October 2015 at 08:52:04 UTC, Rikki Cattermole wrote:
Alright seriously?
+    /**
+     * Generate green coloured output on POSIX systems
+     */
+    string green(in string msg) @safe pure const
+    {
+        return escCode(Color.green) ~ msg ~ escCode(Color.cancel);
+    }

Somebody fix please: https://github.com/robik/consoled
Irk I don't like it being done like this. I want it done right or not
at all pretty much.

Further thought about UDA's especially those with high conflict
potential. Perhaps they should instead be moved out into e.g.
std.stdudas. That way it is not locked into e.g. testing while being
reusable.

What about using compile-time-only struct-wrappers or UDA's for Visual
attributes such as color, boldness, etc? For a showcase see my pretty.d
(which I plan to propose to put in std.experimental.pretty):

https://github.com/nordlow/justd/blob/master/pretty.d

It has bitrotten a bit lately but I'll fix it today if you want to have
live showcase.

I don't terribly care about that :) I just hate seeing something that we should have being done privately and in Phobos.

Reply via email to