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

Put all of maybe effect example in one file #35

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

atifaziz
Copy link
Contributor

This PR is in the same light as #33.

I took some liberty to modernise further:

  • Added readonly modifier to Maybe
  • Terser Maybe<T> constructor
  • Used targeted-type new where very evident
  • User richer patterns in switch statements

Copy link
Collaborator

@eiriktsarpalis eiriktsarpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eiriktsarpalis eiriktsarpalis merged commit 473c941 into nessos:master Jul 25, 2024
1 check passed
@atifaziz atifaziz deleted the 1file-maybe-example branch July 25, 2024 17:01
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.

2 participants