[nem-en] Expression problem, expressiveness of Nemerle generics

Kamil Skalski kamil.skalski at gmail.com
Fri May 11 19:04:38 CEST 2007


> augment them? In particular, overly-restrictive generic constraints are
> the root of the problem I encountered with the C# implementation, and
> I'm wondering whether a Nemerle implementation might be safer (at least
> for Nemerle users).
>

To remove them you would need to modify compiler to use its own
constraints logic instead of native .NET generics, which I'm not
really sure is worth doing. Otherwise you could just hide the needed
casts and type-checks behind generated code - thus making it more safe
for users.

I think that building a nicer syntax and generating parts of the
boilerplate code by macros would be quite interesting extension of
your implementation :)

-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list