Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Add CHANGELOG entry for angle-bracket generic errors

+21
+21
CHANGELOG.md
··· 147 147 is now smaller in certain cases. 148 148 ([Surya Rose](https://github.com/GearsDatapacks)) 149 149 150 + - The compiler now shows a specific syntax error when trying to use an 151 + angle-bracket syntax for generic types or function definitions: 152 + 153 + ```txt 154 + error: Syntax error 155 + ┌─ /src/parse/error.gleam:1:6 156 + 157 + 1 │ fn id<T>(x: T) { x } 158 + │ ^ I was expecting `(` here. 159 + 160 + If you were trying to define a generic function, Gleam does not use angle brackets. 161 + Instead, you should write types in the parameter list with lower-case names. 162 + Each unique lower-case name becomes a type variable: 163 + 164 + fn example(arg: t) -> t 165 + 166 + See: https://tour.gleam.run/functions/generic-functions/ 167 + ``` 168 + 169 + ([Aaron Christiansen](https://github.com/AaronC81)) 170 + 150 171 ### Build tool 151 172 152 173 - New projects are generated using OTP28 on GitHub Actions.