⭐️ A friendly language for building type-safe, scalable systems!

CHANGELOG

authored by giacomocavalieri.me and committed by Louis Pilfold 76dd4cdd 168b1e37

Changed files
+31 -1
+31 -1
CHANGELOG.md
··· 105 105 ([Carl Bordum Hansen](https://github.com/carlbordum)) and 106 106 ([Giacomo Cavalieri](https://github.com/giacomocavalieri)) 107 107 108 + - The error message one gets when calling a function with the wrong number of 109 + arguments has been improved and now only suggests the relevant missing labels. 110 + For example, this piece of code: 111 + 112 + ```gleam 113 + pub type Pokemon { 114 + Pokemon(id: Int, name: String, moves: List(String)) 115 + } 116 + 117 + pub fn best_pokemon() { 118 + Pokemon(198, name: "murkrow") 119 + } 120 + ``` 121 + 122 + Would result in the following error, suggesting the missing labels: 123 + 124 + ```txt 125 + error: Incorrect arity 126 + ┌─ /src/main.gleam:6:3 127 + 128 + 6 │ Pokemon(198, name: "murkrow") 129 + │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected 3 arguments, got 2 130 + 131 + This call accepts these additional labelled arguments: 132 + 133 + - moves 134 + ``` 135 + 136 + ([Giacomo Cavalieri](https://github.com/giacomocavalieri)) 137 + 108 138 ### Build tool 109 139 110 140 - `gleam update`, `gleam deps update`, and `gleam deps download` will now print ··· 125 155 126 156 - Docs generator now strips trailing slashes from Gitea/Forgejo hosts so 127 157 sidebar "Repository" and "View Source" links never include `//`, and 128 - single-line “View Source” anchors emit `#Lx` instead of `#Lx-x`. 158 + single-line "View Source" anchors emit `#Lx` instead of `#Lx-x`. 129 159 ([Aayush Tripathi](https://github.com/aayush-tripathi)) 130 160 131 161 ### Language server