[nem-en] Same as empty enum in c#
Kamil Skalski
kamil.skalski at gmail.com
Wed May 16 08:44:53 CEST 2007
2007/5/16, Paul Bludov <pbludov at gmail.com>:
> public enum EmptyEnum {}
>
> Compiles fine in c#. Without any warnings.
> I'm actually does not understand which kind of warning is suitable here.
> "Consider using empty class instead of empty variant"?
>
> If somebody wrote an empty declaration, he or she need it.
Makes sense to me. There is no "programmer error" or even an "unclean
code" issue with this.
>
>
> ----- Original Message -----
> From: Dmitry Ivankov
> To: devel-en at nemerle.org
> Sent: Thursday, May 10, 2007 8:00 PM
> Subject: [nem-en] empty variants
>
>
> Is there any sense in empty variant?
> variant A{};
>
> Maybe a warning should be generated?
>
>
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list