Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
176 views
in Technique[技术] by (71.8m points)

user interface - Is there a programming language that is close to english and read purely left to right?

Is there a programming language that is purely written left to right?

Example (close to Python syntax):

Normal Python: a: int = 2 + 3

Left to Right Python: 2 + 3 = a: int

The assignment should be after the calculation, because the assignment happens after the calculation (proper representation of the thought prozess and of that happens in time)

There is one related post I found (Is there a programming language that reads right to left?) but it is several years old and was not very well formulated.

While SQL seems to be quite close to this, it is not turing complete.

Haskell would meet my criterias as far as I can see, except variable assignment, given some syntactic sugar is or is not used.

FOL, ASP, ECLiPSe and other more descriptive languages are mostly nondirected and are usually either by convention (FOL) or by definition (ASP, ECLiPSe) still right to left in some way.

I do see the UI advantages of variables being assigned being at the beginning of the line. It would still be interesting to see, if it is actually an advantage or if we are just used to it.

I am aware that I could simply create a new dialect or writing convention for some existing system to get this result, but I would also be interested into the readability of existing code in the wild etc. :)

Thank you in advance!

question from:https://stackoverflow.com/questions/65645949/is-there-a-programming-language-that-is-close-to-english-and-read-purely-left-to

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...