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

Does not rely on method cascading for immutability #107

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

jama5262
Copy link
Owner

What does this PR do?

Remove method cascading reliability, simple chaining added

Example

Before

var jiffy = (
    Jiffy()
     ..add(hours: 3, days: 1)
     ..subtract(minutes: 30, months: 1)
    );
jiffy.yMMMMEEEEdjm; // Wednesday, February 3, 2021 6:07 PM

Now

var jiffy = Jiffy()
    .add(hours: 3, days: 1)
    .subtract(minutes: 30, months: 1);
    .yMMMMEEEEdjm; // Wednesday, February 3, 2021 6:07 PM

@jama5262 jama5262 merged commit 6322ffb into develop Mar 22, 2021
@jama5262 jama5262 deleted the all-return-jiffy branch March 22, 2021 10:44
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