Y
Y
Yaroslav2016-10-28 21:40:14
Programming languages
Yaroslav, 2016-10-28 21:40:14

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

8 answer(s)
A
Andryukha, 2016-10-29
@kciray

Knuth had the idea for Literate Programming. Google it.

R
Rou1997, 2016-10-29
@Rou1997

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.

S
Sergey, 2016-10-28
@begemot_sun

For a long time there was BASIC :) but there are no times.

A
Alexander, 2016-10-28
@NeiroNx

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.

S
Schullz, 2016-10-29
@Schullz

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.

A
Alexander Skusnov, 2016-10-29
@AlexSku

It is easier for the compiler to convert text into machine codes if the language is artificial and very simple.

T
Tiberal, 2016-11-01
@Tiberal

https://ru.wikipedia.org/wiki/Shakespeare_(%D1%8F%...

M
Mikhail Potanin, 2016-11-03
@potan

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 question

Ask a Question

731 491 924 answers to any question