Skip to content

Commit

Permalink
Add note on Function naming (#321)
Browse files Browse the repository at this point in the history
* Add note on Function naming

* Review feedback - function and value names

* Fix Apostrophie typo
  • Loading branch information
milesfrain authored Jun 3, 2020
1 parent 75e3e75 commit 837ec4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions language/Syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ multiply x y = x * y

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.

## Function and Value names

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:
* Letter: Unicode category `L`
* Mark: Unicode category `M`
* Number: Unicode category `N`
* Underscore: `_`
* Apostrophe: `'`

## Function application

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

0 comments on commit 837ec4f

Please sign in to comment.