unsigned integers

This commit is contained in:
pca006132 2020-12-17 10:27:11 +08:00 committed by pca006132
parent effe9434ab
commit a003ebb14e

View File

@ -60,6 +60,8 @@ class Foo(EnvExperiment):
* `bool` * `bool`
* `int32` * `int32`
* `int64` * `int64`
* `uint32`
* `uint64`
* `float` * `float`
* `str` (note: fixed length, provide builtin methods?) * `str` (note: fixed length, provide builtin methods?)
* `bytes` * `bytes`
@ -79,7 +81,7 @@ class Foo(EnvExperiment):
i = 0 i = 0
a = t[i] a = t[i]
``` ```
* `range` (over `int32`, `int64`, `float`) * `range` (over numerical types)
## Generics ## Generics
We use [type variable](https://docs.python.org/3/library/typing.html#typing.TypeVar) for denoting generics. We use [type variable](https://docs.python.org/3/library/typing.html#typing.TypeVar) for denoting generics.