LWN.net Logo

Irksome for 5 minutes...

Irksome for 5 minutes...

Posted Mar 29, 2005 21:33 UTC (Tue) by alextingle (subscriber, #20593)
In reply to: Everything to like by b7j0c
Parent article: Evidence that Python is advancing into the enterprise (NewsForge)

...until you get used to it. Now I'm equally irked by the vertical space wasted by '{' and '}' in other languages.


(Log in to post comments)

Irksome for 5 minutes...

Posted Mar 29, 2005 22:10 UTC (Tue) by dskoll (subscriber, #1630) [Link]

if ($braces_used_like_this) {
    print "No wasted vertical space!\n";
} else
      {
           print("I see your point.\n");
      }

Irksome for 5 minutes...

Posted Mar 29, 2005 22:26 UTC (Tue) by piman (subscriber, #8957) [Link]

if ($you_try_this) {
 print "You waste less space, sure"
} else {
 print "But there's always that last line..."
}

Irksome for 5 minutes...

Posted Mar 29, 2005 23:38 UTC (Tue) by dskoll (subscriber, #1630) [Link]

if ($you_do_this) {
    print("There is the ending brace, true.\n");
    print("But most people leave blank lines at logical places,\n");
    print("even in Python.\n);
    print("And you could always do this, though I don't like it.\n");   }

Irksome for 5 minutes...

Posted Mar 30, 2005 2:35 UTC (Wed) by flewellyn (subscriber, #5047) [Link]

(with-possible-alternative (proposal)
  (if (equal (type-of expressions) symbolic)
     (and (not (space-wasted anywhere)
     (arranged-logically (readable code)))))

Irksome for 5 minutes...

Posted Mar 30, 2005 3:49 UTC (Wed) by dskoll (subscriber, #1630) [Link]

(find-it (hard i to)
 organize-around (brain my) lispish reordering
 (even-though (programmed i) (lisp in) (years (3) for)))

Irksome for 5 minutes...

Posted Mar 30, 2005 4:52 UTC (Wed) by donio (subscriber, #94) [Link]

I find it hard to believe that prefix notation is confusing to you after programming in Lisp for 3 years unless you have had a complete brain transplant since. Unlike you, I don't have 3 years of Lisp programming experience under my belt, I am only a causual user of Emacs Lisp and Common Lisp but prefix notation and syntax in general has never been a problem for me.

Irksome for 5 minutes...

Posted Mar 30, 2005 2:38 UTC (Wed) by tjc (guest, #137) [Link]

if ($you_are_like_me)
{
        print("You might not have even realized...");
        print("...that there's a world-wide shortage of braces and newlines.\n");
}

Irksome for 5 minutes...

Posted Mar 30, 2005 23:36 UTC (Wed) by Russell (guest, #1453) [Link]

.file "junk.c"
.section .rodata
.LC0:
.string "Braces are for whimps\n"
.text
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
subl %eax, %esp
subl $12, %esp
pushl $.LC0
call printf
addl $16, %esp
movl $0, %eax
leave
ret
.size main, .-main
.section .note.GNU-stack,"",@progbits
.ident "GCC: (GNU) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)"

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds