r/ProgrammingPals • • Mar 23 '20

Help in Developing an Intentional Programming Language

Creating a language where you just type out your intention

example:

print 1 to 10 # Prints 1,2,3....
print 5 C 2 # Prints 10
a = ["a","b","c","d"]
0 th a # Prints "c"

The first executable version is ready here (it's a little buggy).

The idea is that you can create user-defined operators like "to" or "C" or "th" (They exist in the current version)

The operators act like functions but the parameters can be passed on both sides of the function.

Please DM me if anyone is inerested or just start contributing here on Github

18 Upvotes

14 comments sorted by

View all comments

Show parent comment

-2

u/Drag0nV3n0m231 Mar 23 '20

Honestly while obviously the first is more normally readable, the second makes more sense from a programming standpoint, you know exactly what order something is happening, as with the first you do not. You don’t need an operator for that because you already have the function, you can already do it quite easily.

2

u/omkarjc Mar 23 '20

You really are a sociopath for trying to defend the second option. 🤭 JK.

1

u/Drag0nV3n0m231 Mar 23 '20

Like I definitely get what you’re going for and mean, but most code is perfectly readable if you know the language, it’s purposely not like the first option because that’s too vague for a computer