Wildest programming language idea
amasad (3034)

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


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

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

A language where you can create your own loops

 loop repeatUntil {
   if condition {
   }else {

The condition keyword is the condition that is put into the loop, the stop keyword tells the loop to break, and the run keyword runs the code you put in your loop. Also the loop keyword is for defining loops and after that in this example, repeatuntil, is the name of your loop.

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)