Skip to content

Commit 5f92807

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

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

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

55
### Compiler
66

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

0 commit comments

Comments
 (0)