Skip to content

Commit 85efcc1

Browse files
authored
update status about union types (#192)
1 parent 18f2ab7 commit 85efcc1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function foo(a: i32 = 0): i32 {
3232
}
3333
```
3434

35-
There are no union types, but a similar effect can be achieved with generics:
35+
There are no union types yet, but a similar effect can be achieved with generics:
3636

3737
```ts
3838
// 😢

src/status.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Some crucial language features rely on [future WebAssembly functionality](https:
3737
| [Tail call] | | | <Badge text="uncertain" type="warning"/>
3838
| [JS Promise integration] | | | <Badge text="uncertain" type="warning"/>
3939
||
40-
| 📖 **Spec text available**
40+
| 📖 **Spec text available**
4141
| [ECMAScript module integration] | | | <Badge text="good" type="tip"/> Interop
4242
| [Instrument and tracing] | | | <Badge text="good" type="tip"/> Debugging
4343
||
@@ -122,7 +122,7 @@ As such, certain higher-level language features still have their limitations or
122122
| Host&nbsp;integration | Enabled by generated [host bindings](./compiler.md#host-bindings), respectively the [runtime interface](./runtime.md) for integration into non-Web environments.
123123
||
124124
| 🐣&nbsp;**Limited**
125-
| Union&nbsp;types | Union types are not supported by design, except for nullable class types. There is no `any` type. A viable alternative is to use generics specialized with [static type checks](./stdlib/globals.md#static-type-checks) to achieve a similar effect.
125+
| Union&nbsp;types | Union types are not supported yet, except for nullable class types. There is no `any` type. A viable alternative is to use generics specialized with [static type checks](./stdlib/globals.md#static-type-checks) to achieve a similar effect.
126126
| Symbols | Symbols are implemented in the standard library, but don't have deep compiler integration yet.
127127
| Object literals | Object literals can be used in places where the current type is a bare class, then corresponding to an instantiation of the class.
128128
| JSON | JSON is not strictly typed in nature, so we haven't settled on a standard yet. Solutions developed by the community: [assemblyscript-json](https://github.com/nearprotocol/assemblyscript-json)

0 commit comments

Comments
 (0)