Skip to content

Commit 837ec4f

Browse files
authored
Add note on Function naming (#321)
* Add note on Function naming * Review feedback - function and value names * Fix Apostrophie typo
1 parent 75e3e75 commit 837ec4f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

language/Syntax.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ multiply x y = x * y
9797

9898
Type signatures are not required for top-level declarations in general, but is good practice to do so. See the section on types for more details.
9999

100+
## Function and Value names
101+
102+
Function and value names must start with a lowercase letter ([unicode category](https://en.wikipedia.org/wiki/Unicode_character_property#General_Category) `Ll`) or underscore `_`. The following characters may be any number of:
103+
* Letter: Unicode category `L`
104+
* Mark: Unicode category `M`
105+
* Number: Unicode category `N`
106+
* Underscore: `_`
107+
* Apostrophe: `'`
108+
100109
## Function application
101110

102111
Function application is indicated by just the juxtaposition of a function with its arguments:

0 commit comments

Comments
 (0)