Printing shortest decimal form of floating point number with Mir

Walter Bright newshound2 at digitalmars.com
Tue Dec 22 09:18:25 UTC 2020


On 12/21/2020 8:33 PM, 9il wrote:
>> These functions in Phobos would make a great advertisement for Mir.
> How this possible?

A lot more people will have Phobos than Phobos+Mir. If they are perusing the 
source code and see Mir contributed excellent floating point formatting code, 
they may have never heard of Mir but have now. Then they'll be likely to be 
positively disposed towards using Mir because of the high quality code.

It's the same idea as HBO offering the first episode for free in a miniseries. 
People watch the first episode, like it, and then subscribe to HBO.


> Having them in Mir is already a great advertisement for Mir

Since they exist in the C standard library (except for DMC :-( ) they by 
themselves aren't a compelling reason for someone to use Mir.


More information about the Digitalmars-d-announce mailing list