From 837ec4ff3a956cdeda31997bf5f697ee738295b6 Mon Sep 17 00:00:00 2001 From: milesfrain Date: Wed, 3 Jun 2020 14:08:39 -0600 Subject: [PATCH] Add note on Function naming (#321) * Add note on Function naming * Review feedback - function and value names * Fix Apostrophie typo --- language/Syntax.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/language/Syntax.md b/language/Syntax.md index 3bcde0fd..f06af904 100644 --- a/language/Syntax.md +++ b/language/Syntax.md @@ -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: