Original Post
Here is my programming idea for a simpler language. Tell me if its been done before. It is more like natural language.
IF x==(3 or 4)
in c++ would be: if(x==3 || x==4)
IF x(==3 or >5)
in c++ would be: if(x==3 || x>5)
IF (x or y)>3
in c++ would be: if(x>3 || y>3)
IF x(>(y and z) or ==7)
in c++ would be: if( (x>y && x>z) || x==7)
IF (height OF (x or y))>20
in c++ would be: if(x.height>20 || y.height>20 )
IF (height or width) OF x >30
in c++ would be: if(x.height>30 OR x.width>30)
Why is this useful? Well consider writing this in c++:
IF (height or width or length) OF (cat or dog or pidgeon) (>10 AND <30)
IF x==(3 or 4)
in c++ would be: if(x==3 || x==4)
IF x(==3 or >5)
in c++ would be: if(x==3 || x>5)
IF (x or y)>3
in c++ would be: if(x>3 || y>3)
IF x(>(y and z) or ==7)
in c++ would be: if( (x>y && x>z) || x==7)
IF (height OF (x or y))>20
in c++ would be: if(x.height>20 || y.height>20 )
IF (height or width) OF x >30
in c++ would be: if(x.height>30 OR x.width>30)
Why is this useful? Well consider writing this in c++:
IF (height or width or length) OF (cat or dog or pidgeon) (>10 AND <30)