top 50 comments

sorted by: hot top controversial new old
[–] 209 points 2 years ago (19 children)

I propose a new, more threatening kind of control flow.

do {
  /* something */
} or else {
  /* you don't want to find out */
}
  • source
  • hideshow 19 child comments
  • [–] 59 points 2 years ago (11 children)

    Some C++ style guides suggest the following naming convention for functions that crash on any error

    OpenFileOrDie()
    
  • source
  • parent
  • hideshow 11 child comments
  • load more comments (4 replies)
  • load more comments (4 replies)
    [–] 105 points 2 years ago (12 children)

    Please God let this be a humorous post that somehow does not also find a way to manage to come true...

  • source
  • hideshow 12 child comments
  • [–] 89 points 2 years ago* (9 children)

    I would have bought it if they said ifnot instead, it's the same number of characters and wouldn't require a major parser overhaul to support keywords with a ' in the name.

  • source
  • parent
  • hideshow 9 child comments
  • load more comments (2 replies)
    [–] 99 points 2 years ago* (1 child)
  • [–] 78 points 2 years ago (4 children)

    Reduce exclamation marks!? Great Scott!!!!! Is there a shortage of punctuation in the future!?

  • source
  • hideshow 4 child comments
  • load more comments (1 reply)
    [–] 53 points 2 years ago (3 children)
    aint (something) {
        somethingElse()
    }
    
  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [+] 53 points 2 years ago (18 children)
  • load more comments (3 replies)
    [–] 40 points 2 years ago (3 children)
  • [–] 39 points 2 years ago* (5 children)

    Why not just ifnot? Same count of characters but an o instead of a possibly problematic single quote.

  • source
  • hideshow 5 child comments
  • [–] 17 points 2 years ago* (last edited 2 years ago)

    Yes... how is "reducing exclamation marks" a good thing when you do it by adding a ' (not to be confused with , ´,or’` ..which are all different characters).

    Does this rely on the assumption that everyone uses a US QWERTY keyboard where ! happens to be slightly more inconvenient than typing '?

  • source
  • parent
  • [–] 37 points 2 years ago (6 children)

    Still not as good as whence

  • source
  • hideshow 6 child comments
  • load more comments (1 reply)
    [–] 32 points 2 years ago (5 children)

    "Help's with readability"? You know what else helps? Not using contractions and introducing an unbalanced single quote.

  • source
  • hideshow 5 child comments
  • load more comments (2 replies)
    [–] 29 points 2 years ago

    I'm struggling to understand if this is true or ifn't true

  • source
  • [–] 28 points 2 years ago

    Imagine the regex needed to highlight code with that extra single quote.

  • source
  • [–] 26 points 2 years ago (7 children)

    I'd take a not or "if not" operator tbh.

  • source
  • hideshow 7 child comments
  • load more comments (7 replies)
    [–] 24 points 2 years ago (2 children)

    I'm just hoping this paves the way to code with Southern dialect

    iffun is == true
    iffun ain't == false
    
  • source
  • hideshow 2 child comments
  • [–] 19 points 2 years ago* (3 children)
    ifn't (myNum don't= 3 && myStr ain'tnull'rblankish)
    
  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 19 points 2 years ago (1 child)
    load more comments (1 reply)
    [–] 17 points 2 years ago* (1 child)

    With ahit like that its not microsoft java its now microsoft javascript

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 11 points 2 years ago* (1 child)

    This can't be for real. I'll stick with C11 thank you.

  • source
  • hideshow 1 child comment
  • [–] 11 points 2 years ago*

    reminds me of #ifndef instead of #if !defined(...)

  • source
  • [–] 10 points 2 years ago*

    This has to be illegal. I mean, it's basically suicide incitement (or whatever is the phrase for it)

  • source
  • load more comments
    view more: next ›