Trivial (but not bikeshed please) question of style…
Russel Winder via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 28 01:15:44 PDT 2014
I need to know the community view on D idiom regarding UFCS in one
particular case (mostly because I am doing a presentation and need to
know which one to put on the slides).
Given:
import std.concurrency: Tid, send
and some code that spawns, then in a spawned task should I write:
parent.send(result)
or:
send(parent, result)
as being idiomatic D code?
This has all the appearance of a potential troll, but that is not my
intention, I really do need to know which the community feels is
idiomatic D.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141028/b8a36f3b/attachment.sig>
More information about the Digitalmars-d
mailing list