nothing
nothing copied to clipboard
Implement Zero type inhabited by no instances.
Maybe something like:
public class Zero
{
private Zero() { }
public static T For<T>()
{
throw new Exception();
}
}
Pull requests are welcome. However if you do this a Seq would also be useful.
On Fri, Mar 6, 2015 at 11:38 PM, Lev Gorodinski [email protected] wrote:
Maybe something like:
public class Zero { private Zero() { } public static T For<T>() { throw new Exception(); } }— Reply to this email directly or view it on GitHub https://github.com/gregoryyoung/nothing/issues/12.
Studying for the Turing test
This type also supports the null value, see #2 . Please solve the programming language problem mentioned in that bug before adding further designs