News for hackers. Stuff that matters.
Re:Python with Braces by chilldream on Sunday February 09, 2014 @09:10PM (#7208665)
> Edit: also, the indentation in the first example is obviously just a means of illustrating that whitespace is non-significant with this project. I don't think they're suggesting code ought to be written without correct indentation.

Does anyone anywhere have a realistic example of Python's indentation system being a hindrance? To me, the complaint always comes across as "I should hypothetically be able to do things that I would never actually do or endorse doing"

And it's not like there's no flexibility for weird corner cases. I mean, all of these things are already legal Python 3:

    for i in range(10): print(i)

    # although you wouldn't actually do this
    a = 3; b = 5; # a,b = 3,5

    # and you REALLY wouldn't do this but I couldn't help coopting their example

    if foo == "bar": _=(
        print("indenation"),
     print("doesn't"),
           print("matter!")
     )

There are no comments on this comment yet.