Skip to content

short-form strings #1

Description

@oatmealine

typing out quotes for label names, characters, etc. is kind of obnoxious. proposal:

character "fella"
character "somelabel"
-- ->
character :fella
goto :somelabel

inspired by Crystal's Symbol syntax, keywords (words with no spaces) could be prefixed with : to be quickly turned into a string. this would greatly help readability in cases like this to provide an easy, lexical difference between option text strings and label name strings:

"option 1" -> :option1
"option 2" -> :option2
"option 3" -> :option3

also applicable to just about anything that could require shorthand strings, like expressions

character :fellow
expression :happy

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions