You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note almost all previous attributes with `bs.xx` can be simplified as `xx`, except such two that
44
-
we don't provide abbreviations:
43
+
Note almost all previous attributes with `bs.xx` can be simplified as `xx`
44
+
with the exception of the following two that don't have abbreviations:
45
45
46
-
- `bs.send.pipe` : this attribute was deprecated in favor of `bs.send`, you can still use the existing one for backward compatibility.
46
+
- `bs.send.pipe` : this attribute was deprecated in favor of `bs.send`; you can still use the existing one for backward compatibility.
47
47
48
-
- `bs.splice` : this attribute was deprecated in favor of `bs.variadic`, you can still use the existing one for
48
+
- `bs.splice` : this attribute was deprecated in favor of `bs.variadic`; you can still use the existing one for
49
49
backward compatibility.
50
50
51
51
@@ -84,13 +84,15 @@ Now user can pick up their js file extension support per module format:
84
84
85
85
## More flexible filename support
86
86
87
-
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript-compiler/issues/4624), for example, Next.js/React Native, we allow file names like `404.res`, `Button.Andriod.res` so that it can just be picked up by those tools
87
+
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript-compiler/issues/4624),
88
+
for example, Next.js/React Native, we allow file names like `404.res`,
89
+
`Button.Android.res` so that it can just be picked up by those tools
88
90
89
91
90
92
91
93
## Better type based inference for pattern `let {a,b,c} = value`
92
94
93
-
Previously for such piece of code:
95
+
Previously, for code like this:
94
96
95
97
```ocaml
96
98
module N = struct
@@ -109,8 +111,9 @@ You will get a type error
109
111
Error: Unbound record field x
110
112
```
111
113
112
-
However, since the compiler already knows the type of `u`, it is capable of looking up the label `x` properly,
113
-
in this release, we make such style work out of the box without the work around like adding a module prefix like `let {N.x} = ..`
114
+
However, since the compiler already knows the type of `u`, it is capable of looking up the label `x` properly.
115
+
In this release, we make the original code style work out of the box without a work-around such as adding a module prefix
Note almost all previous attributes with `bs.xx` can be simplified as `xx`, except such two that
65
-
we don't provide abbreviations:
64
+
Note almost all previous attributes with `bs.xx` can be simplified as `xx`
65
+
with the exception of the following two that don't have abbreviations:
66
66
67
-
-`bs.send.pipe` : this attribute was deprecated in favor of `bs.send`, you can still use the existing one for backward compatibility.
67
+
-`bs.send.pipe` : this attribute was deprecated in favor of `bs.send`; you can still use the existing one for backward compatibility.
68
68
69
-
-`bs.splice` : this attribute was deprecated in favor of `bs.variadic`, you can still use the existing one for
69
+
-`bs.splice` : this attribute was deprecated in favor of `bs.variadic`; you can still use the existing one for
70
70
backward compatibility.
71
71
72
72
@@ -117,13 +117,15 @@ Now user can pick up their js file extension support per module format:
117
117
118
118
## More flexible filename support
119
119
120
-
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript-compiler/issues/4624), for example, Next.js/React Native, we allow file names like `404.res`, `Button.Andriod.res` so that it can just be picked up by those tools
120
+
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript-compiler/issues/4624),
121
+
for example, Next.js/React Native, we allow file names like `404.res`,
122
+
`Button.Android.res` so that it can just be picked up by those tools
121
123
122
124
123
125
124
126
## Better type based inference for pattern `let {a,b,c} = value`
125
127
126
-
Previously for such piece of code:
128
+
Previously, for code like this:
127
129
128
130
<CodeTablabels={["ReScript", "Reason", "ML"]}>
129
131
```res
@@ -164,8 +166,9 @@ You will get a type error
164
166
Error: Unbound record field x
165
167
```
166
168
167
-
However, since the compiler already knows the type of `u`, it is capable of looking up the label `x` properly,
168
-
in this release, we make such style work out of the box without the work around like adding a module prefix like `let {N.x} = ..`
169
+
However, since the compiler already knows the type of `u`, it is capable of looking up the label `x` properly.
170
+
In this release, we make the original code style work out of the box without a work-around such as adding a module prefix
0 commit comments