We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In #152, we discovered a case that when factorial is replaced by !, the behavior is not desirable.
factorial
!
In particular, when defining a recursive function factorial with style=ALGORITHMIC, e.g.
style=ALGORITHMIC
def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1)
we should not replace factorial with ! in the recursive case, because that is also the name of the function.
factorial should stay as factorial.
The text was updated successfully, but these errors were encountered:
odashi
No branches or pull requests
Description
In #152, we discovered a case that when
factorial
is replaced by!
, the behavior is not desirable.In particular, when defining a recursive function
factorial
withstyle=ALGORITHMIC
, e.g.we should not replace
factorial
with!
in the recursive case, because that is also the name of the function.Expected behavior
factorial
should stay asfactorial
.The text was updated successfully, but these errors were encountered: