News for hackers. Stuff that matters.
Re:C-style vs. Python-style syntax: which one would you pref... by ErrantX on Sunday December 14, 2008 @01:05PM (#397497)
That's quite a good idea.

My point with braces is that you dont have to indent the code then - which is dangerous :)

I have inherited a couple of PHP and C projects that have taken weeks just to indent to be readable - before i can even begin to work on them! (admittedly that is more of a PHP problem). Forced indentation makes definite that everything is obvious: addign curly braces is purely asthetic IMO :D

Re:C-style vs. Python-style syntax: which one would you pref... by davidw on Sunday December 14, 2008 @01:25PM (#397507)

    (defun indent-buffer ()
      "Indent entire buffer"
      (interactive)
        (indent-region (point-min) (point-max) nil))
Re:C-style vs. Python-style syntax: which one would you pref... by queensnake on Sunday December 14, 2008 @09:10PM (#397871)
The Unix 'indent' command has come a long way in the last few years, too.
Re:C-style vs. Python-style syntax: which one would you pref... by bkudria on Sunday December 14, 2008 @03:41PM (#397630)
Amen.
Re:C-style vs. Python-style syntax: which one would you pref... by potatolicious on Sunday December 14, 2008 @02:33PM (#397572)
I don't think it's the job of the programming language to enforce style. Proper code style should always be used, but should not be forced upon the coder, and that's my major objection to Python syntax.
Re:C-style vs. Python-style syntax: which one would you pref... by ljlolel on Sunday December 14, 2008 @06:12PM (#397748)
I don't think it's the job of human beings to enforce style. Proper code style should always be used automatically, but should not force the coder to waste a second thinking about it. The coder should think purely about the logic of the program, and that's my major objection to C.
Re:C-style vs. Python-style syntax: which one would you pref... by anthonyb on Sunday December 14, 2008 @06:22PM (#397755)
So proper code style should be forced on the maintainer instead?