Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
Hi Adrabi,
 
I want to write a programming language in plain english. No abbreviations. No slang.
No punctuation.
 
Ideally find an index of C++ commands and rewrite them in english.
 
Coding would be like explaining.
 
Thanks
Philip
Posted 30-Mar-13 2:51am
Comments
ThePhantomUpvoter at 30-Mar-13 8:12am
   
If you are expecting "Adrabi" to just happen by and see this, I think you are going to be in for a disappointment. You would probably want to post this non-question to whatever article you were reading.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Don't post this under Quick Answers - if you were looking at an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Unfortunately this will not work in practise because of a combination of 2 things.
 
There is as yet no algorithm or software which can accurately parse the whole English language. There is not even any mathematical theory which suggests that it can be completely and accurately parsed by a turing machine ( i.e. non quantum computer )
 
If you take the novel approach of replacing each form of C++ statement with something equivalent in English then you hit another more subtle issue.
You've now specified one correct way expressing each statement in English but how is the user of your language supposed to know which of the many dozens of ways that English could encode that statement is the one you have chosen.
Many many more forms would be valid English than would be valid in your new language. This would likely cause a lot of user confusion and make your new language very hard to learn, especially as at the end of the day it would still effectively be C++ in terms of it's gramatical and conceptual structure.
 
There is a rule of thumb for these things that says that if 2 things are differect then they should appear different. If the new language looks like English the user will assume it is English and as it can't be they will be unhappy.
 
There are however ideas around literate programming which may appeal to you which use advanced features of languages like C++ to make it more like English without it being so similar as to confuse.
  Permalink  
Comments
CPallini at 30-Mar-13 11:14am
   
5.
Manfred R. Bihy at 30-Mar-13 16:01pm
   
+5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

This was already done in the 1950's, as a goal of enabling managers and supervisors to understand the code that the lowly programmers were writing. The language had some features in it that (besides the syntax) were somewhat unique to that language: decimal numbers, ability to handle currency. Support for decimal numbers is largely why it is still around today. It is a much loathed language nowadays, as anybody doing serious programming uses a language that is more conducive to computer constructs: loops, counters, variables, branches, methods without the "blah blah" overhead of a lot of english words.
 
Oh yeah, this language was called COBOL. You can read about it here[^].
  Permalink  
v2
Comments
Manfred R. Bihy at 30-Mar-13 16:05pm
   
Cobol was immediately what I thought of when I read OP's question. :)
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 30 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100