Skip to content

Comment on My newest invention: The Glas Language (A Pythonic offshot)

Comments

bhdzOP

Glas doesn't care about keywords actually, the only "keywords" are the syntactic elements like ~ -> ->> { [ {{ {> <}

so you write:

    if: something ~ happened: and: something else ~ happened:
        logic ~ did: something ~ happened # ?
and
    for: x in: range: 12, 32
        {{ x }}
this chains the needed things nicely in fact you can write like this:
    in: range: 5, 13
        perform: a task

    for: x in: iter: person
        {{ x }}
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.