Skip to content

Commit d243cfc

Browse files
committed
Clarification.
1 parent 67524c2 commit d243cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: _blogposts/2023-05-17-enhanced-ergonomics-for-record-types.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ let a: a = {
110110
let name = nameFromB(a :> b)
111111
```
112112

113-
Notice how we _coerced_ the value `a` to type `b` using the coercion operator `:>`. This works because they have the same record fields.
113+
Notice how we _coerced_ the value `a` to type `b` using the coercion operator `:>`. This works because they have the same record fields. This is purely at the type level, and does not involve any runtime operations.
114114

115115
Additionally, we can also coerce records from `a` to `b` whenever `a` is a super-set of `b` (i.e. `a` containing all the fields of `b`, and more). The same example as above, slightly altered:
116116

0 commit comments

Comments
 (0)