A Philosophy of Software Design

H. S. Teoh hsteoh at qfbox.info
Mon May 25 14:39:13 UTC 2026


On Tue, May 26, 2026 at 02:34:28AM +1200, Richard (Rikki) Andrew Cattermole via Digitalmars-d wrote:
> On 26/05/2026 2:29 AM, H. S. Teoh wrote:
[...]
> > The current implementation of writefln leaves a lot of room for
> > improvement.  A single call with a simple "%s" format pulls in the
> > machinery for a truckload of specialized formatting code, like
> > floating-point formatting (which like all things IEEE is exceedingly
> > complex), BigInt handling, ad nauseum.
> > 
> > Retrospect is always 20/20, as they say, but what *should* have been
> > done is that the format string should be a compile-time argument that's
> > scanned at compile-time by CTFE, and transformed into a series of
> > straightforward calls for each argument.  For example, writing:
[...]
> There is a simple way to archive this, use IES.

What's IES?


T

-- 
If creativity is stifled by rigid discipline, then it is not true creativity.


More information about the Digitalmars-d mailing list