Python: Braces? Not a chance!

June 18th, 2013 | Categories: programming, python | Tags:

I was recently chatting to a research group who were considering moving to Python from MATLAB for some of their research software output.  One team member was very worried about Python’s use of indentation to denote blocks of code and wondered if braces would ever find their way into the language?  Another team member pointed out that this was extremely unlikely and invited us to attempt to import braces from the __future__ module.

>>> from __future__ import braces
  File "", line 1
SyntaxError: not a chance
  1. June 18th, 2013 at 18:10
    Reply | Quote | #1

    Ha! Forced indentation is one Python feature I really like. I’d love to see it in more languages. Such a simple way to forever banish all formatting bugs and style conflicts.

  2. Mike Croucher
    June 19th, 2013 at 09:28
    Reply | Quote | #2

    completely agree

Comments are closed.