Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

have you ever seen them abused ? you'd understand why : (or at least have you thought about it ? you'd understand why : (or at least you can get the gist from this ? good : I can't help you))


That was perfectly clear to me... :D


I think what he meant was more something like this:

  $row[6] = $src?str_replace($src,($table[$src]?$table[$src]:$src),$row[6]):$row[6];
[Edit] It's not quite so clear when it's not in English, methinks.


Same here :)


Actually, this is even better than a normal post since I can terminate early without reading the rest ;-)


I guess it all depends:

  seen them in tabular format ? you know they're great :
  have you seen them abused   ? you think you know     :
  have you thought about it   ? you think you know     :
  get the gist from this      ? good                   :
                                I can't help you       ;


That's quite a bit more readable than the equivalent tower of ifs and elses.


Would this be like (cond) in lisp?

  (cond
    ((seen-them in-tabular-format)  '(you know they are great))
    ...)


You can use the ternary operator without abusing it.

That said, that made complete sense.


have you ever seen them abused ? you'd understand why

: (or at least have you thought about it ? you'd understand why

: (or at least you can get the gist from this ? good

: I can't help you))

Sorry, not perfect but with some indentation would do the job quite nice.

Sometimes is not what you write, it is what you don't ;)


also, aren't the parens redundant?


My post below:


    <?="I","smarty pants"?"don'tget":"see";?>it.


In a similar vein:

Have you read the Drupal source ? Exactly : Take a look




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: