From a74b63ae2bba20a290323c418b7821e2f949fafc Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 23 Feb 2024 15:36:34 +0100 Subject: [PATCH] chore: Updated CHANGELOG --- CHANGELOG.md | 4 ++-- src/obj.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b68e544a..a65843ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Added - REPL (https://github.com/buzz-language/buzz/issues/17) available by running buzz without any argument - WASM build (https://github.com/buzz-language/buzz/issues/142) and [web REPL](https://buzz-lang.dev/repl.html) -- Function argument names and object property names can be ommitted if the provided value is a named variable with the same name (https://github.com/buzz-language/buzz/issues/204) +- Function argument names and object property names can be omitted if the provided value is a named variable with the same name (https://github.com/buzz-language/buzz/issues/204) ```buzz object Person { str name, @@ -41,7 +41,7 @@ var value = from { ## Changed - Map type notation has changed from `{K, V}` to `{K: V}`. Similarly map expression with specified typed went from `{, ...}` to `{, ...}` (https://github.com/buzz-language/buzz/issues/253) - `File.readLine`, `File.readAll`, `Socket.readLine`, `Socket.readAll` have now an optional `maxSize` argument -- Tail call optimization (https://github.com/buzz-language/buzz/issues/9). The effect should be limited for recursive calls since the JIT should kick in pretty quickly in those use cases. +- Tail call optimization (https://github.com/buzz-language/buzz/issues/9). The effect should be limited for recursive calls since the JIT compiler should kick in pretty quickly in those use cases. - Empty list and map without a specified type resolve to `[any]`/`{any: any}` unless the variable declaration context provides the type (https://github.com/buzz-language/buzz/issues/86) - Function yield type is now prefixed with `*>`: `fun willYield() > T > Y?` becomes `fun willYield() > T *> Y?` (https://github.com/buzz-language/buzz/issues/257) diff --git a/src/obj.zig b/src/obj.zig index 9e7e9cf8..1841857e 100644 --- a/src/obj.zig +++ b/src/obj.zig @@ -4025,7 +4025,7 @@ pub const ObjTypeDef = struct { .Map => { try writer.writeAll("{"); try self.resolved_type.?.Map.key_type.toStringRaw(writer, qualified); - try writer.writeAll(", "); + try writer.writeAll(": "); try self.resolved_type.?.Map.value_type.toStringRaw(writer, qualified); try writer.writeAll("}"); },