Additional identifier characters (prime '
and question mark ?
suffixes) #129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I believe it would be nice and fun for readability if identifiers could be suffixed with any number of the following symbols:
'
- prime (math notation for indicating values derived from other values)?
- question (for functions that answer a question. anything that returnsboolean
)This is inspired by Ruby. We have
?
but not Ruby's!
, because it's the boolean NOT operator, and it wouldn't really solve anything—since haku does not have mutation at all. Maybe it would make sense for acts, as they represent side effects—likeplotter!
orstroke!
but I'm not sure that gains us any readability. It just looks weird.Symbols as identifiers suffixesto Symbols as identifier suffixesExample with the
builtin/dashes
brush:Symbols as identifier suffixesto Additional identifier characters (prime'
and question mark?
suffixes)