Compare boost::hana to D

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 19 12:22:11 PDT 2017


On 04/19/2017 12:12 PM, Adrian Matoga wrote:
> On Wednesday, 19 April 2017 at 18:57:19 UTC, David Gileadi wrote:
>> On 4/19/17 11:30 AM, Adrian Matoga wrote:
>>> On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote:
>>>> On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote:
>>>>> [2] https://epi.github.io/2017/03/18/less_fun.html
>
>>
>> Minor nit in the article--in the following paragraph "runtime" should
>> probably be replaced with "compile time":
>>
>> "Note the enum in place where C++ version used auto. The type is also
>> inferred automatically, but using enum forces index to be computed at
>> runtime and only then it can be used in static assert."
>
> Fixed, thanks a lot!
> It seems impossible to spot all mistakes without someone else's eyes
> even if I read it a thousand times... :|

(I saw that too. :) And one more.)

Thank you. Has this been on Reddit yet?

Two typos:

1) A missing underscore made me believe C++ gained a new keyword (make). :)

     auto events = make event_system("foo"_s, "bar"_s, "baz"_s});

2) Replace runtime with compile-time?

     "but using enum forces index to be computed at runtime"

Ali


More information about the Digitalmars-d mailing list