all 12 comments

sorted by: hot top controversial new old
[โ€“] 18 points 5 months ago (1 child)

so she wants to be forgotten?

  • source
  • hideshow 1 child comment
  • [โ€“] 11 points 5 months ago (4 children)

    Meaningful Indentation > Unnecessary visual clutter

    I will die on this hill. Python is wonderfully readable as it saves on unnecessary characters because indentations as well as line breaks are (usually) part of the syntax. Something like C++ with all its :;{}<> is just painful to read, not to mention annoying to write on many non-US keyboard layouts such as german without modifications.

  • source
  • hideshow 4 child comments
  • [โ€“] 1 point 5 months ago

    I think having both the indentation and the braces surrounding code is much better than just indentation or braces, since it removes any ambiguity of what code goes to what if, for, or while loop/condition. we already have to memorize precedence to define ambiguous expressions. Why have another set of rules that could otherwise be prevented with braces and indentation?

  • source
  • parent
  • [โ€“] 7 points 5 months ago (2 children)

    What's worse, that Python doesn't need semicolons, or that if used, they are ignored? ๐Ÿค”

  • source
  • hideshow 2 child comments
  • [โ€“] 5 points 5 months ago*
    >>> print("proof by counterexample in a python REPL")
    proof by counterexample in a python REPL
    >>> x = 2; print(x)
    2
    >>> print("this is not ignored"); print("it's just mostly useless"); print("but you can use as many as you want")
    this is not ignored
    it's just mostly useless
    but you can use as many as you want
    
  • source
  • parent
  • [โ€“] 3 points 5 months ago (1 child)

    She wants to be chosen. In python semicolons are optional in most cases. You choose to add them... mostly because you have been writing a lot of c lately

  • source
  • hideshow 1 child comment