indent style for D

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Jan 30 19:38:38 PST 2012


On Tue, Jan 31, 2012 at 02:43:57AM +0000, Stewart Gordon wrote:
> On 30/01/2012 02:24, H. S. Teoh wrote:
> <snip>
> >And I'd love to have my integer set class
> >be able to use ∪ and ∩ instead of verbose operations like x.union(y) and
> >x.intersection(y).
> <snip>
> 
> My utility library uses | and &.  Think of the possible values of the
> type you're creating a set of as being like the bits of a number, and
> then it makes sense.
[...]

Funny you should mention that; my integer set class represents set
members as bits, and set operations are implemented as bitwise
operations. :)

Still, though, it'd be nice to have actual set notation. But I was only
being half-serious.


T

-- 
BREAKFAST.COM halted...Cereal Port Not Responding. -- YHL


More information about the Digitalmars-d mailing list