From 36f6969759cf62f1519f9930c93359bc00d0c92c Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 23 Jan 2024 15:07:13 +0100 Subject: [PATCH] Added named property example in CHANGELOG --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8efe63d0..719f8272 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ ## Added - REPL (https://github.com/buzz-language/buzz/issues/17) available by running buzz without any argument - 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) +```buzz +object Person { + str name, + str lastName, +} + +const name = "Joe"; +const lastName = "Doe"; +const person = Person { + name, + lastName, +}; +``` - Sandboxing build options `memory_limit` and `cycle_limit` (https://github.com/buzz-language/buzz/issues/182) - Block expression (https://github.com/buzz-language/buzz/issues/105): ```buzz