Introducing new syntax for the core language, including a more mature way to write Plume code and less ambiguous syntax to both help the parser to do better work and the user to write without any compiler distraction.
This new syntax includes some major changes such as:
Using braces instead of indentation sensitive: improve code readability by providing more clarity to your code
fn facto(n: int): int {
return switch n {
case 0 => 1
case ? => n * facto(n - 1)
}
}
Globally, indented blocks are replaced with braces-delimited blocks.
Notable changes
Type extensions and native functions groups now work without with
Function definitions and closures start with fn keyword
Type definitions no longer use the equality operator (they now use braces) and are separated by comma
Macro definitions (both variables and functions) use a macro keyword
Introducing new syntax for the core language, including a more mature way to write Plume code and less ambiguous syntax to both help the parser to do better work and the user to write without any compiler distraction.
This new syntax includes some major changes such as:
Globally, indented blocks are replaced with braces-delimited blocks.
Notable changes
with
fn
keywordmacro
keyword