As discussed in #ideas > reflecting on static dispatch... and discussing removing WSA , we're going to start officially deprecating WSA (whitespace application syntax for function calls). For example, Num.add 1 2
should now be written as Num.add(1, 2)
instead, using the new PNC (parentheses and commas) function call syntax.
There are several aspects for us to discuss further:
List Str
). I infer that tag payloads (Custom Str
) are simply a subset of type variables, but maybe they count as a distinct use case. Should we deprecate WSA in the type system, too?I think the plan is that types are WSA and values are PNC, its subtle but I appreciate having them distinct visually.
#ideas > Using parens for types
e.g. [Number I64, String Str]
is the type of a tag union, with Number(42)
, or String("a string")
being values of this type.
I think we have a very easy removal point. Just never port WSA to the new zig compiler
Whenever that is the default compiler, it will be officially removed
It is already deprecated in the old rust compiler and will auto format to PNC
So I would label it as deprecated already
I don't think we need to do anything more aggressive in the old rust compiler.
I agree with Brendan
These simple replies seem like consensus! CC @Richard Feldman
List Str
). I infer that tag payloads (Custom Str
) are simply a subset of type variables, but maybe they count as a distinct use case. Should we deprecate WSA in the type system, too?v0.1.0
.v0.1.0
.v0.0.0
syntax until v0.1.0
fully releases.:thumbs_up:s?
Last updated: Jul 06 2025 at 12:14 UTC