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

Provide top-level factory methods #114

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

bolshakov
Copy link
Owner

  • Fear::Some
  • Fear::Option
  • Fear::Right
  • Fear::Left
  • Fear::Try
  • Fear::Success
  • Fear::Failure

It supposed to play nicely with ruby 2.7 pattern-matching:

case Fear::Option(input)
in Fear::Some(value)
  # ...
in Fear::None
  # ...
end

* `Fear::Some`
* `Fear::Option`
* `Fear::Right`
* `Fear::Left`
* `Fear::Try`
* `Fear::Success`
* `Fear::Failure`

It supposed to play nicely with ruby 2.7 pattern-matching:

```ruby
case Fear::Option(input)
in Fear::Some(value)
  # ...
in Fear::None
  # ...
end
```
@bolshakov bolshakov merged commit f366a53 into master Nov 19, 2020
@bolshakov bolshakov deleted the feature/top-level-factory-methods branch November 19, 2020 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant