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 a tryUnbox, isNull builtin operators #284

Open
baronfel opened this issue Oct 14, 2016 · 0 comments
Open

Add a tryUnbox, isNull builtin operators #284

baronfel opened this issue Oct 14, 2016 · 0 comments

Comments

@baronfel
Copy link
Owner

Add a tryUnbox, isNull builtin operators [6099437]

Submitted by Dave Thomas on 6/25/2014 12:00:00 AM
15 votes on UserVoice prior to migration

Add builtin functions:
tryUnbox : obj -> 'T option
isNull: 'T -> bool when 'T : null
The first is an unbox operation which if successful would return Some<'a> on a successful unbox and None for a fail. This would allow the Option module to be used efficiently for single type matches and processing.

Response

** by fslang-admin on 1/21/2015 12:00:00 AM **

Completed for F# 4.0, see https://visualfsharp.codeplex.com/SourceControl/network/forks/dsyme/cleanup/contribution/7672
Don Syme, F# Language/Library Evolution

Original UserVoice Submission
Archived Uservoice Comments

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