Is std.signals deprecated?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 7 11:58:56 PST 2015
On Thu, 05 Mar 2015 21:54:01 +0000, weaselcat wrote:
> Seems barely maintained and there was a proposed replacement claiming it
> was broken(http://wiki.dlang.org/Review/std.signal)
> that never got approved.
>
> Is std.signals worth using over a dub package?
they both suxalot. both of them are ugly, and people tend to avoid ugly
things. i believe that singal/slot concept must have some support in the
compiler. i don't want to throw all that stupid templates everywhere, and
i don't want to mixin things manually. i want to tell the compiler that
this method is @signal, that method is @slot, and compiler will happily
do the hidden things for me. the same with `connect` and `emit`. ah, and
`emit` must be keyword, just like in Qt.
i will do that in Aliced eventually.
the only thing i'm unsure is `connect`: i still can't think out the nice
syntax for it. maybe i'll reintroduce that nice C arrow ("->"), but this
time for good. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150307/65f8104a/attachment.sig>
More information about the Digitalmars-d-learn
mailing list