13 Replies - 662 Views - Last Post: 06 September 2019 - 11:16 AM

#1 sprotz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-November 08

Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 02:22 AM

Is there a programming language that is similar to Python but without brackets and is closer to Natural English ? Or is there software that converts it to another programming language e.g Python ?

An example of the type of code I would like would look something like this:
create car
car.fuel = 10
car.weight = 2

move car with speed 5

if car.fuel = 0
destroy car





Is This A Good Question/Topic? 0
  • +

Replies To: Which programming language like Python is closest to Natural English ?

#2 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7025
  • View blog
  • Posts: 23,851
  • Joined: 05-May 12

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 03:53 AM

Say again? Python doesn't use brackets. It is very dependent on indenting so that its users don't have to use brackets.
Was This Post Helpful? 0
  • +
  • -

#3 sprotz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-November 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 04:42 AM

Python uses these brackets ( ) in an example like :
print("statement")



Was This Post Helpful? 0
  • +
  • -

#4 xclite   User is offline

  • I wrote you an code
  • member icon


Reputation: 1393
  • View blog
  • Posts: 4,225
  • Joined: 12-May 09

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 05:33 AM

I personally don't think that closeness to English is necessarily good in a language (I really don't like ambiguity, and natural languages, and English in particular, get really ambiguous).

That said, some languages where you can essentially "drop" syntax, such as parens or braces, include:

  • ruby
  • scala
  • smalltalk

Was This Post Helpful? 3
  • +
  • -

#5 NeoTifa   User is online

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4548
  • View blog
  • Posts: 19,186
  • Joined: 24-September 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 06:03 AM

ruby was gonna be really high on that list for me
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15222
  • View blog
  • Posts: 60,931
  • Joined: 12-June 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 08:12 AM

A few questions.

What do you plan on doing with said language? Do you want futz around with LOGO and the turtle, or something more?

What's wrong with parenthesis? If it's good enough for PEMDAS then it's good enough to use in my code! :D

A comment - typically ( and ) are called parenthesis, { are } are called braces, and [ and ] are called brackets.

Oh, and welcome back after eight or so years. :^:
Was This Post Helpful? 0
  • +
  • -

#7 jon.kiparsky   User is online

  • Beginner
  • member icon


Reputation: 11623
  • View blog
  • Posts: 19,755
  • Joined: 19-March 11

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 08:46 AM

@modi - in British English, they typically say "brackets" for "parentheses", so the usage is not completely unheard-of, in UK or Indian speakers especially.
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15222
  • View blog
  • Posts: 60,931
  • Joined: 12-June 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 08:49 AM

*nods in freedom eagle*
Was This Post Helpful? 1
  • +
  • -

#9 sprotz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-November 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 09:01 AM

View Postmodi123_1, on 05 September 2019 - 08:12 AM, said:

Oh, and welcome back after eight or so years. :^:/>


Eight years? I didn't know I was away for so long. I didn't even know I was subscribed on this site. I came to register only to find that my username was already registered, so I logged in.
Was This Post Helpful? 0
  • +
  • -

#10 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15222
  • View blog
  • Posts: 60,931
  • Joined: 12-June 08

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 09:10 AM

Derp.. sorry. ELEVEN years. Math is hard for me.
Was This Post Helpful? 0
  • +
  • -

#11 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5457
  • View blog
  • Posts: 14,406
  • Joined: 18-April 07

Re: Which programming language like Python is closest to Natural English ?

Posted 05 September 2019 - 12:51 PM

Sounds like someone needs to be put into Macosxnerd101's math for computer nerds course. But be careful, if you don't submit full proofs in Good Will Hunting style, he will whack you with a ruler. He asked me once to submit a paper on the Baum–Connes conjecture and when I handed it in after simply writing "What?" in purple crayon he gave me a right hook to the jaw. You better believe I studied up on K-theory after that for my very survival!
Was This Post Helpful? 1
  • +
  • -

#12 jon.kiparsky   User is online

  • Beginner
  • member icon


Reputation: 11623
  • View blog
  • Posts: 19,755
  • Joined: 19-March 11

Re: Which programming language like Python is closest to Natural English ?

Posted 06 September 2019 - 09:14 AM

I don't think Mac's course generally covers counting of finite sets. On the one hand the theory there is too trivial to contemplate, and on the other hand if you can correctly count a finite number of objects, that is proof that you are too aware of the real world to ever be a really good mathematician.
Was This Post Helpful? 1
  • +
  • -

#13 Radius Nightly   User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 318
  • Joined: 07-May 15

Re: Which programming language like Python is closest to Natural English ?

Posted 06 September 2019 - 10:40 AM

Im using LUA, mostly wxLUA, its easy, got simple syntax, since its made from C, they made it user friendly, and its good to speed up things, also cross platform, but i guess when you start creating functions and variables you like and need (eg. car, fuel, weight, speed), every language makes sense. So its not about language, but how you are making things.
Was This Post Helpful? 0
  • +
  • -

#14 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5457
  • View blog
  • Posts: 14,406
  • Joined: 18-April 07

Re: Which programming language like Python is closest to Natural English ?

Posted 06 September 2019 - 11:16 AM

View Postjon.kiparsky, on 06 September 2019 - 09:14 AM, said:

I don't think Mac's course generally covers counting of finite sets. On the one hand the theory there is too trivial to contemplate, and on the other hand if you can correctly count a finite number of objects, that is proof that you are too aware of the real world to ever be a really good mathematician.


Want to prove your metal? Put that into a paper and submit it to him. We shall see what your Mac day of reckoning will be like. I hope you are a god fearing man.

:D
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1