DEV Community

Discussion on: How do you feel about braces and semicolons?

Collapse
 
msoedov profile image
Alex Miasoiedov • Edited

Both braces and semicolons were used to simplify language parser. In most of the time they have no value for code readability. However I would agree that in some rare cases optional brackets could improve readability of a complex code structure.

I believe the next generation programming lang will get rid of under_score or cameCase style to look more like a natural human language


def find public ip(self):  # instead of def find_public_ip(self):
      ....
Collapse
 
17cupsofcoffee profile image
Joe Clay

Natural-language style programming is definitely interesting - I think the coolest example I've seen of it is Inform 7, a language used for writing text adventures which is designed to look like normal (if somewhat stilted) English prose:

"Hello World" by "I.F. Author"

The world is a room.

When play begins, say "Hello, world."

Whether you could (or should) create a general-purpose programming language in that style, I'm not sure - it's interesting to think about, though :)