vickumar1981 / pyeffects

Handle side-effects in Python like a boss. Implements functional types for Either, Option, Try, and Future.
Other
30 stars 6 forks source link

Add `on_success`, `on_failure` for `Try` class #21

Closed sloboegen closed 1 year ago

sloboegen commented 1 year ago

Closes #5 and #6.

vickumar1981 commented 1 year ago

lgtm. 👍 . this is awesome.

would you mind removing the --boxed parameter in the Makefile. This will fix the build.

https://github.com/vickumar1981/pyeffects/blob/master/Makefile#L12

I think once that is done, I can merge this in and release a 1.0.6 version that includes your changes for Future and Try classes.

Thanks again. @sloboegen

sloboegen commented 1 year ago

lgtm. 👍 . this is awesome.

would you mind removing the --boxed parameter in the Makefile. This will fix the build.

https://github.com/vickumar1981/pyeffects/blob/master/Makefile#L12

I think once that is done, I can merge this in and release a 1.0.6 version that includes your changes for Future and Try classes.

Thanks again. @sloboegen

Thanks! @vickumar1981

Also, I can add on_failure for Future before v1.0.6, it seems logical.

And what do you think about migration to GitHub Action CI?

vickumar1981 commented 1 year ago

@sloboegen , i agree with both points.

I can go ahead and create the issues later tonight, or if you'd like to, feel free to create them in the issues section.

I'm also thinking about creating a CONTRIBUTING.md file to document how to use the make targets, and how to get setup for development, in general.

Thanks again for all your help. The additions are great!

sloboegen commented 1 year ago

@vickumar1981 thanks :) Creating CONTRIBUTING.md is a nice idea!

I'll create the issues and make the PRs (on_failure + GitHub Actions) on the current week.