Skip to content

Commit bd2cff6

Browse files
committed
Update of the CHANGELOG.md file.
1 parent 0e9d8a8 commit bd2cff6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@
44

55
### Compiler
66

7+
- The compiler now suggest public variables and functions from imported modules
8+
when the variable in unknown. These variables and functions are suggested
9+
based on name and arity.
10+
11+
Considering this program:
12+
```gleam
13+
import gleam/io
14+
15+
pub fn main() -> Nil {
16+
println("Hello, World!")
17+
}
18+
```
19+
20+
The compiler will display this error message:
21+
```text
22+
error: Unknown variable
23+
┌─ /path/to/project/src/project.gleam:4:3
24+
25+
4 │ println("Hello, World!")
26+
│ ^^^^^^^
27+
28+
The name `println` is not in scope here.
29+
Consider using one of these variables:
30+
31+
io.println
32+
```
33+
34+
([raphrous](https://github.com/realraphrous))
35+
736
- The compiler now performs function inlining optimisations for a specific set
837
of standard library functions, which can allow functions which were previously
938
not tail-recursive on the JavaScript target to become tail-recursive. For

0 commit comments

Comments
 (0)