Wildest programming language idea
h
amasad (3034)

What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.

Go!

Also on le twatter: https://twitter.com/replit/status/1275525512861900800

You are viewing a single comment. View All
hello1964 (26)

Another cool idea. I'm calling it simplified condition statements.
To use this you have to write a term and an optional bool operator in front of the if then statement:

 myVar == if

Say you are going to use that term and operator a lot in an if then statement you could just do this

 myVar == if var2 && var3 && var4

This translates to

 if myVar == var2 && myVar == var3 && myVar == var4

It much easier to do it the first way. Also you can remove the operator and just do something like this

 myVar if == var2 and <= var3 or >= var4

You can also override the operator

 myVar == if var2 and <= var3 and var4

Also to exclude variables from this put the conditions in a loop like this ex():

 myVar == if var2 and var3 and ex(var4 and var5)