4 ms·
I'm a Python dev, and it's the same in Python world. I prefer spaces, and so do most other Python devs. This is in line with one of the Python community's core
by jdimov 12y ago
I'm a Python dev, and it's the same in Python world. I prefer spaces, and so do most other Python devs. This is in line with one of the Python community's core beliefs - "Explicit is better than implicit"
- crazypyro 12y agoIt helps that PEP define that spaces is explicitly correct as well.
- dcomartin 12y ago"Explicit is better than implicit" I think making the implicit explicit is also a belief of most logical devs outside of the Python community.
- Zergy 12y ago> "Explicit is better than implicit" Seems like a strong argument for sticking with strongly typed languages.
- kyllo 12y agoPython is strongly typed. Dynamic typing and weak typing are not the same thing. Python: >>>1 + "1" Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for +: 'int' and 'str' PHP: >1 + "1" 2
- LarryMade2 12y agoExcept when it comes to closing brackets... sigh
- kyllo 12y agoWhy would you need those when you have indented blocks as a language feature? Unless you really like one-liners, in which case you should just use Perl or Ruby.
- LarryMade2 12y agoKind of an old-school thing, I prefer the visual/literal cues of opening/closing brackets in statement groups, I guess I don't really trust encapsulation my mere indentation. So yeah, I would prefer explicit (brackets) over just implicit (spaces), in python. Perl and Ruby aren't Python.