ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Change syntax for calling `@category` functions. #99

Closed ta0kira closed 3 years ago

ta0kira commented 3 years ago

I've never been a fan of the $$ syntax for calling @category functions. For one, it uses two characters, which is only otherwise done for certain comparison and boolean operators.

: should work, e.g., Foo:create<?>("hello") instead of Foo$$create<?>("hello"). It seems to be the only convenient character that isn't already in use. This won't preclude using : in the future for @value operations, e.g., a ternary operator like C++ has.