7

So another rant inspired me.
Tell me one fact or detail about your favorite programming language, other devs not using it, might not know about.

I go with: In Delphi you don't have garbage collection, unless you use interfaces the right way.

Comments
  • 1
    Delphi: Because making a coffee per compilation ends in early death. There's nothing like click and run in less than a second!
  • 1
    Python: If you want multiple multiple cores processing your programs, say goodbye to share memory and debugger functionality.
    echo "the cake is a lie" | sed "s/cake/Thread"
  • 2
    "goto" is a reserved word in Java, so much like other reserved words (new, void, private, etc.) it can't be used for method or variable names.

    However, it was never actually implemented, just reserved for future use - so it now just exists as a "banned" reserved word rather than a useful one.

    "const" is in exactly the same boat!
  • 2
    this one's kinda popular, but still not many now about it: most C-like languages have what is a called a "go-to operator", which is just a combination of post-decrement and greater-than

    for example:
    int i = 5;
    while (i --> 0) {
    // will run 5 times
    }
  • 0
    @irene yeah, that's what i said
  • 0
    @Krokoklemme you mean `(i-- > 0)`

    In ocaml, you can redefine the whole ast of the language itself at compile time if youd like
  • 0
    Just remembered that in Ruby you can break open the boolean and null classes so you can replace if/else in the whole programm with method calls instead. (You definitely shouldn't do something like that!)

    Heard this in a Talk from Sandi Metz
    https://youtu.be/OMPfEXIlTVE
Add Comment