Talk:Python (programming language)/Archive 3: Difference between revisions

Content deleted Content added
m bypass deleted redirect per RFD using AWB
m Robot: substituting user signatures using AWB
Line 7:
:That bothered me before but I didn't change it. I think the whole example is bad, with or without braces, with braces it's biased because C doesn't need them in that case and without them it just sucks because it's meant to demonstrate that whitespace is significant in Python with regards to blocks but isn't in most other languages. Without the braces the example doesn't really convey the point clearly enough.
 
:Off topic: I would have written that as <code>return n == 0 ? 1 : n * factorial(n-1)</code> in C and <code>[*] 1..$n</code> in my favorite language, guess which;) —[[{{Userns:2}}:Ævar Arnfjörð Bjarmason/Sig}}|Ævar Arnfjörð Bjarmason]] 22:25, 23 December 2005 (UTC)
::I think you're quite right about it being a bad example. I can't come up with anything off the top of my head that is both simple and requires a block of statements. Off topic: Yeah, ?: is handy stuff, and the $ gives the language away. =) --Phill