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

feature: add return self wherever sensible #15

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

mcondarelli
Copy link

Add return self wherever sensible to allow call chaining (Javascript-style).

This commit does not change current behavior at all.
return self statement was only added to methods not having an explicit return statement.

I added a few more returns than I actually need to cover other possible usages.

…Javascript-style).

This commit does not change current behavior at all.
`return self` statement was only added to methods not having an explicit `return statement.`
Copy link
Owner

@JaWeilBaum JaWeilBaum left a comment

Choose a reason for hiding this comment

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

Thanks for adding the return self to quite a bunch of bunch of methods!

@JaWeilBaum JaWeilBaum linked an issue Nov 15, 2021 that may be closed by this pull request
@JaWeilBaum JaWeilBaum added this to the Version 0.5.0 milestone Nov 15, 2021
@JaWeilBaum JaWeilBaum added the enhancement New feature or request label Nov 15, 2021
@JaWeilBaum JaWeilBaum merged commit 1ea257d into JaWeilBaum:master Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using chaining in calls to Layer() elements
2 participants