You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
It would be really nice if one could configure Option not to do implicit conversion from a value to Some(value). Sometimes declaring intent explicitly is really useful. Is that possible?
Thank you.
The text was updated successfully, but these errors were encountered:
This behaviour is the same as in one of the most featured lib LanguageExt.
It allows easily convert ordinary method to optional with minimal code changes and back. The same is for result return type - you can return one type or another.
What is your use case when you dont need implicit conversion?
Well, it lacks explicit clearness when you're, say, doing a code review on Azure DevOps pull request, an Option variable is declared earlier and all you see further down the code is:
someVariable = 42
This gives no indication of intent that this is an Option and not a simple int.
Hello,
It would be really nice if one could configure Option not to do implicit conversion from a value to Some(value). Sometimes declaring intent explicitly is really useful. Is that possible?
Thank you.
The text was updated successfully, but these errors were encountered: