27
davide
7y

I hate conditions and loops without curly brackets

Comments
  • 3
    I love them
  • 5
    Clearly you're not a Python kind of guy then.
  • 0
    I hate the fact that you can't remove them from one-line try-catch clauses.
  • 2
    Yeah...Resharper gets rid of them during "code cleanup" 😅.

    Even if I have a one line loop, I'd rather have the curleys. But if you are using C# you can just use LINQ. Beautiful! 😍
  • 4
    Too easy to make a mistake if they're missing. I will add them if I'm working on code that doesn't have them.
  • 0
    Me too. We all have our neuroses. Being developers, I'd say we have more than our fair share.
  • 0
    Have heard of famous Apple's "goto fail" bug? Please read this and you will always use brackets for one line ifs:
    http://dwheeler.com/essays/...

    BTW, I don't think using identation to create code blocks is the most attractive thing in Python. Maybe even a downside.
Add Comment