-
Notifications
You must be signed in to change notification settings - Fork 3.4k
If-statement in body causes warning message #1
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
Comments
The second one never raises warnings because it is never compiled, just executed. :) I have just pushed a fix, thanks for reporting! |
Ignore nomatch_clause_type warnings, closed by 02b7339 |
Closed
wow accidentally got pointed here by typing "#1" in IRC. Syntax blast from a past I was not involved in :) |
This was referenced Nov 4, 2020
Closed
josevalim
added a commit
that referenced
this issue
Jul 2, 2024
Rule #1: Enum.reverse([1, 2, 3]) ++ [4, 5, 6] is equivalent but slower than Enum.reverse([1, 2, 3], [4, 5, 6]) Rule #2: Enum.reverse([1, 2, 3] ++ [4, 5, 6]) is equivalent but slower than: Enum.reverse([4, 5, 6], Enum.reverse([1, 2, 3])) Rule #3 Enum.reverse(Enum.reverse([1, 2, 3])) is the same as: [1, 2, 3]
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running following code:
It works properly, but it causes some Erlang warning messages:
However, if the if-statement is not in a function body, the warning message is not shown:
Sample code is available at my repository:
The text was updated successfully, but these errors were encountered: