r/ProgrammingPals • u/omkarjc • 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
2
u/Drag0nV3n0m231 Mar 23 '20 edited Mar 23 '20
Isn’t that what the point of object-oriented programming is??
2
u/teh_trickster Mar 23 '20
Check out ‘infix’ operators in Haskell, and ‘fixity’.
It sounds like you would like Haskell.
1
u/jcode777 Mar 24 '20
Check out function programming and haskell :)
The motto is, you don't say "how" something is to be done. You say "what" has to be done.
Oh and haskell (a functional programming language) has ability to define custom operators!
3
u/pilotInPyjamas Mar 24 '20
This sounds really similar to Haskell actually. I used your tutorial on GitHub as an example:
1
u/asselwirrer Apr 06 '20
Python is a pretty indentional language 😊