Skip to content

Commit 290b5d6

Browse files
Mention in Naming Conventions that is_ and trailing ? should not be used together (#14679)
1 parent b2d548a commit 290b5d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/pages/references/naming-conventions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ Examples: `Integer.is_even/1`, `is_list/1`
109109

110110
These functions and macros follow the Erlang convention of an `is_` prefix, instead of a trailing question mark, precisely to indicate that they are allowed in guard clauses.
111111

112+
A trailing question mark should not be used in combination with the `is_` prefix.
113+
112114
Note that type checks that are not valid in guard clauses do not follow this convention. For example: `Keyword.keyword?/1`.
113115

114116
## Special names

0 commit comments

Comments
 (0)