Timeline for What syntax element do you hate most in a programming language you use frequently?
Current License: CC BY-SA 2.5
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 21, 2010 at 2:47 | comment | added | tchrist | $x < 10 && do_something();. Also, sometimes you can nice things with a when construct. | |
| Sep 21, 2010 at 11:19 | comment | added | zneak | @SHiNKiROU: Perl seems to have a ternary operator, though. | |
| Sep 21, 2010 at 3:53 | comment | added | Ming-Tang | @zneak Except no elses. (I wish it has EXPR1 if COND else EXPR2 like Python has) | |
| Sep 10, 2010 at 14:43 | comment | added | AShelly | @zneak, you caught me. But the correct version doesn't flow so nicely. Call it poetic license. | |
| Sep 10, 2010 at 1:04 | comment | added | zneak | @AShelly: or why you always get a call, actually. | |
| Sep 5, 2010 at 4:44 | comment | added | Gaurav | @AShelly: Ah, I never thought of it that way! Thanks. | |
| Sep 4, 2010 at 17:13 | comment | added | AShelly | It's unfortunate until you write if ($x<10) do_something(); and_call_me(); and then wonder why you never get a call. I wish C and family would require the braces, to prevent that type of error. | |
| Sep 4, 2010 at 5:54 | comment | added | Gaurav | It isn't, and in many cases is much cleaner than if(..) ... to boot, as you can get all the expressions to line up on the right. But there's times I really want to say if($x < 10) do_something();, and it's unfortunate that Perl won't let me. | |
| Sep 3, 2010 at 20:23 | comment | added | zneak | do_something() if ($x < 10); isn't that bad. | |
| Sep 3, 2010 at 20:07 | history | answered | Gaurav | CC BY-SA 2.5 |