Browse Source

docs: Add type inference notice

github-actions
Garrit Franke 3 years ago
parent
commit
78eb37a626
  1. 2
      docs/concepts/variables.md
  2. 8
      docs/developers/backends.md

2
docs/concepts/variables.md

@ -4,6 +4,8 @@ If you are familiar with some other programming language, the way Sabre handles
To declare a variable, the `let` keyword is used. The type of the variable is infered, but can be specified explicitly. To declare a variable, the `let` keyword is used. The type of the variable is infered, but can be specified explicitly.
> **Note**: Type inference currently only works when using the node-backend. For most other backends, the types need to be specified, until proper type inference is implemented.
``` ```
// variables.sb // variables.sb
fn main() { fn main() {

8
docs/developers/backends.md

@ -12,7 +12,7 @@ default = ["backend_c"]
## Available Backends ## Available Backends
| Target Language | Identifier | Stability notice | | Target Language | Identifier | Stability notice |
| :-------------- | :------------- | :-------------------- | | :-------------- | :------------- | :--------------- |
| Node.js | `backend_node` | mostly stable | | Node.js | `backend_node` | mostly stable |
| C | `backend_c` | in active development | | C | `backend_c` | unstable |

Loading…
Cancel
Save