Compare boost::hana to D
Nicholas Wilson via Digitalmars-d
digitalmars-d at puremagic.com
Sat Apr 22 01:56:53 PDT 2017
On Saturday, 22 April 2017 at 07:53:49 UTC, Johannes Pfau wrote:
>>
>> [1] https://www.youtube.com/watch?v=X_p9X5RzBJE
>> [2] https://epi.github.io/2017/03/18/less_fun.html
>>
>
> OT but is there any benefit to identify events with strings? As
> long as you use compile time only events I'd prefer a syntax as
> in https://github.com/WebFreak001/EventSystem
>
> (one benefit is that it's 100% IDE autocomplete compatible)
>
> I guess if you want runtime registration of events identifying
> by name is useful. But then you also somehow have to encode the
> parameter types to make the whole thing safe...
>
> -- Johannes
I don't know about events, but dcd uses things like token!"+="
instead of giving it a name, I think it is very readable, waaaaay
better than php's T_pajamajama or whatever it is/was.
More information about the Digitalmars-d
mailing list