[nem-en] void as type parameter

Michal Moskal michal.moskal at gmail.com
Thu Jul 12 09:17:08 CEST 2007


On 7/10/07, Sandro Magi <smagi at higherlogics.com> wrote:
> My FP# library is C#-only, I was just pointing out the approach I used
> for safety reasons. Returning object when you want a unit type just
> isn't as safe as having an explicit void/unit type. Since we can't use
> .NET's void type, I added my own Unit type.

Oh, I was missing the point that you're talking about C#. Clearly it's
more typesafe in C#.

-- 
   Michał


More information about the devel-en mailing list