> I suggest differentiating between enum vs. tag union types syntactically.
Even though enums are a special case of tagged unions, my motivation for
differentiation is that enums are guaranteed to have efficient
implementation whereas unions may or may not be.

It should be easy enough to implement that special case efficiently (and
document the fact that it's efficient so users can depend on it). That
seems cleaner to me than saying that `enum {A,B}` is semantically identical
to `union {A,B}` but might be implemented differently.

- Sean
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to