Ideas from the Chapel language (swap)

Bruce Adams tortoise_74 at yeah.who.co.uk
Wed Oct 3 11:53:57 PDT 2007


bearophile Wrote:

> The Cray Inc is designing the Chapel Language:
> http://chapel.cs.washington.edu/
> The following notes are from the specification V. 0.750:
> http://chapel.cs.washington.edu/spec-0.750.pdf
> I think it's rather cute, it looks like a cross between C++, Fortress and Python. Here are few things I think can be interesting for D designers too:
> 
> - Chap. 11.5 page 65, swap operator (useful but probably not enough to justify a new operator)

swap is very useful especially in exception safe programming.
I would like to see swap used as the default implementation of D's transfer constructor (and C++0x's forthcoming move constructor) 




More information about the Digitalmars-d mailing list