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

unify functions definition with no arguments #162

Closed
gdementen opened this Issue May 22, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@gdementen
Member

gdementen commented May 22, 2015

In version 0.10, one can define functions without arguments with or without parentheses:

func:
    - code
# or
func():
    - code

We should deprecate defining a function without the parentheses, but given that all models ever produced will need to be modified, we need to provide an automatic migration tool. I expect to make this a warning in 0.11, and make it an error in 0.13 at the earliest.

@gdementen gdementen self-assigned this May 22, 2015

@gdementen gdementen added this to the 0.11 milestone May 22, 2015

@gdementen gdementen modified the milestones: 0.11, 0.12 Nov 24, 2015

@gdementen gdementen modified the milestones: 0.12, 0.13 Jan 19, 2018

@gdementen gdementen closed this in 2011124 Feb 2, 2018

gdementen added a commit that referenced this issue Apr 17, 2018

updated documentation
* move link-related arguments to align instead of align_abs (closes #274)
* added parentheses to all functions without arguments (for #162)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment