}` |
-| ? | ByteArray | ? | ? |
+| pass-style name | OCapn name | JS example | JSON encoding |
+| -----------------|---------------|-----------------------|----------------------|
+| undefined | Undefined | `undefined` | `"#undefined"` |
+| null | Null | `null` | `null` |
+| boolean | Boolean | `true` }` |
+| remotable | Target | `Far('foo', {})` | `"$0.foo"` |
+| promise | Promise | `Promise.resolve()` | `"&1"` |
+| error | Error | `TypeError(msg)` | `{"#error":
`false` | `true`
`false` |
+| bigint | Integer | `7n`
`-7n` | `"+7"`
`"-7"` |
+| number | Float64 | `Infinity`
`-Infinity`
`NaN`
`-0`
`7.1` | `"#Infinity"`
`"#-Infinity"`
`"#NaN"`
`"#-0"` // unimplemented
`7.1` |
+| string | String | `'#foo'`
`'foo'` | `"!#foo"` // special strings
`"foo"` // other strings |
+| byteArray | ByteArray | `buf.toImmutable()` | // undecided & unimplemented |
+| selector | Selector | `makeSelector('foo')` | `"%foo"` // converting from symbol |
+| copyArray | List | `[a,b]` | `[,]` |
+| copyRecord | Struct | `{x:a,y:b}` | `{