Skip to content

Commit 84fdd08

Browse files
Syntax Lookup: Mention uncurried mode in uncurried function doc
1 parent ff975b9 commit 84fdd08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc_docs/syntax/language_uncurried_function.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ summary: "This is an `uncurried function`."
66
category: "languageconstructs"
77
---
88

9-
ReScript functions are curried by default, however in certain cases you may need an uncurried function. In these cases we add a `.` in the argument list.
9+
**Since 11.0**
10+
All functions are uncurried by default now. This syntax is only usable if uncurried is set to false in `rescript.json`. In uncurried mode it gets formatted away automatically.
11+
12+
With uncurried mode turned off, or before ReScript 11, ReScript functions are curried by default, however in certain cases you may need an uncurried function. In these cases we add a `.` in the argument list.
1013

1114
When calling uncurried functions, we must also include a `.` in the argument list.
1215

@@ -39,3 +42,5 @@ function withCallback(cb) {
3942
### References
4043

4144
- [Uncurried Function](/docs/manual/latest/function#uncurried-function)
45+
- [Uncurried Mode](/blog/uncurried-mode)
46+
- [Build System configuration](/docs/manual/latest/build-configuration#uncurried)

0 commit comments

Comments
 (0)