[bitc-dev] Types that introduce new literals
Jonathan S. Shapiro
shap at eros-os.org
Fri Nov 12 14:20:45 PST 2010
On Fri, Nov 12, 2010 at 11:15 AM, John Zabroski <johnzabroski at gmail.com>wrote:
>
>
> On Thu, Nov 11, 2010 at 7:44 PM, Jonathan S. Shapiro <shap at eros-os.org>wrote:
>
>> Other than bit sets and enumerations, what **commonly used** types want to
>> introduce new, named literals?
>>
>> [and unions, for constructors]
>>
>> shap
>>
>>
> If you are asking about programming languages in general, then "syntax for
> hashes" has to be up there....
>
>
That's not quite what I meant.
Enumerations are one example - the enumerands are new bindings.
Bit sets having named elements are another - a series of bindings gets
introduced for the individual bit names.
Unions introduce leg constructors.
What other commonly used constructs introduce multiple named elements in a
single declaration in that sort of way?
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/bitc-dev/attachments/20101112/47be1429/attachment.html
More information about the bitc-dev
mailing list