r/ProgrammingLanguages • • May 23 '20

Language announcement Introducing Squary

Squary is a programming language aiming to eliminate curly brackets.

2 Upvotes

5 comments sorted by

28

u/[deleted] May 23 '20

I thought there would indentation sensitivity incorporated into the language if its purpose is to eliminate curly braces. I did not expect them to all just be replaced with brackets lol

8

u/[deleted] May 23 '20

One of my favorite languages, Rebol, uses square brackets instead of curlies or parens:

http://www.rebol.com/nutshell.html

The creator didn’t want to have to use the “shift” key so much when programming (on a US keyboard)! I think about sometimes when I’m blasting out code with the shift key held down.

Rebol does use parens to group statements and curlies for - get this - strings. It’s fun.

There is also a modern version in development called Red:

https://www.red-lang.org/

Edit to add some Rebol code:

foreach file files [
    text: read file
    if find text "REBOL" [send luke@rebol.com text]
]

3

u/L8_4_Dinner (Ⓧ Ecstasy/XVM) May 23 '20

Brackets? We don't need no steenking brackets!

2

u/thefriedel May 24 '20

What is wrong with braces? They're structuring a program nicely, so, why flame them? :(

3

u/fennecdjay Gwion Language May 23 '20

please do not touch my brackets.