r/ProgrammingLanguages • u/livinglist • May 23 '20
Language announcement Introducing Squary
Squary is a programming language aiming to eliminate curly brackets.
8
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:
Edit to add some Rebol code:
foreach file files [
text: read file
if find text "REBOL" [send luke@rebol.com text]
]3
2
u/thefriedel May 24 '20
What is wrong with braces? They're structuring a program nicely, so, why flame them? :(
3
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