Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unit type #2

Closed
joncloud opened this issue Nov 30, 2017 · 1 comment
Closed

Add Unit type #2

joncloud opened this issue Nov 30, 2017 · 1 comment

Comments

@joncloud
Copy link
Owner

Reason

Facilitate other generics to understand a zero-tuple struct

Use Cases

Returning Option<Unit> to indicate presence of a value

  • Consider predefining static readonly Option<Unit> Some and None
@joncloud
Copy link
Owner Author

joncloud commented Mar 6, 2018

Odd issue when adding public static readonly Option<Unit> Some and public static Option<Unit> None and running unit tests:

Message: System.TypeLoadException : Could not load type 'Rlx.Unit' from assembly 'Rlx, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'.

joncloud added a commit that referenced this issue Mar 6, 2018
@joncloud joncloud closed this as completed Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant