@@ -29,7 +29,7 @@ In this release, we make the `bs.` prefix optional, this will make the FFI less
2929For example, the old externals for ` readFileAsUtf8Sync ` used to be written like this
3030
3131
32- <CodeTab labels = { [" ReScript" , " Reason" , " ML" ]} >
32+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax) " , " ML (Older Syntax) " ]} >
3333
3434``` res
3535@bs.val @bs.module("fs")
@@ -48,7 +48,7 @@ external readFileAsUtf8Sync : string -> (_[@bs.as "utf8"]) -> string = "readFile
4848
4949It can now be simplified as
5050
51- <CodeTab labels = { [" ReScript" , " Reason" , " ML" ]} >
51+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax) " , " ML (Older Syntax) " ]} >
5252
5353``` res
5454@val @module("fs") external readFileAsUtf8Sync: (string, @as("utf8") _) => string = "readFileSync"
@@ -78,7 +78,7 @@ backward compatibility.
7878
7979If you use es6 module output, the default bindings will be compiled properly now:
8080
81- <CodeTab labels = { [" ReScript" , " Reason" , " ML" ]} >
81+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax) " , " ML (Older Syntax) " ]} >
8282
8383``` res
8484@module("hello") external input: string => string = "default"
@@ -133,7 +133,7 @@ for example, Next.js/React Native, we allow file names like `404.res`,
133133
134134Previously, for code like this:
135135
136- <CodeTab labels = { [" ReScript" , " Reason" , " ML" ]} >
136+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax) " , " ML (Older Syntax) " ]} >
137137
138138``` res
139139module N = {
0 commit comments