Answer the question
In order to leave comments, you need to log in
Are there programming languages that are as close to natural as possible?
I study English grammar. I experience difficulties, as there are a lot of grammatical rules and they are hard to remember. There was an idea - what if you write your own programming language, which will be redundant, but will force the programmer to use different tenses and grammatical structures? Surely there must be solutions in this area.
Googled it but couldn't find anything like it. Maybe there is a game where you can control a character or get information from other characters by forming grammatically correct sentences.
Answer the question
In order to leave comments, you need to log in
There are times in any programming language, you don't need a special language for this, just use them in your code! Here, please, there are tenses and constructions at once:
if (isLoaded) ...
if (isLoading) ...
if (hasLoaded) ...
And you need to learn English in practice, and not through coding. In the same programming, there is a need to correspond with customers, read English documentation, etc., but you have chosen the most "crooked" path.
the number of tenses in English is redundant - just as in Russian there can be many opposite meanings of one word. These concepts contradict the concept of programming.
So such languages cannot exist in principle.
The best version of the "game" where you need to control a character or get information from other characters, forming grammatically correct sentences - correspondence with foreigners. For simple chatting, you can use, for example, https://www.interpals.net/ , well, or foreign freelance exchanges
. You can look at text quests (not those in Space Rangers, with a choice of answers from the proposed options, but those where you need to enter "answer").
Here is an example: lurkmore.to/%D0%A3%D0%B1%D0%B8%D1%82%D1%8C_%D0%B4%...
Creating such a programming language is too difficult and too useless. The use of tenses will be too illogical and therefore they will be learned incorrectly, if at all. From such a "learning" of the language, something similar to overfitting of the neural network will happen.
It is easier for the compiler to convert text into machine codes if the language is artificial and very simple.
APL and its descendants J and K, although they use special characters too heavily, are close in structure to natural languages. In their description, even linguistic concepts are used - the verb and the gerund.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question