• @thatwill
    link
    1311 months ago

    If you’re trying to directly compare different variable types in any language without strong typing, you’re going to have edge-case results which you might not expect.

    My “coding like a moron” message still stands. PHP isn’t a strongly typed language and it doesn’t tell you off for trying stupid stuff like comparing a string with an int. Nor do other languages like JavaScript.

    • @[email protected]
      link
      fedilink
      411 months ago

      Also using duck typing fails against php is pretty funny when it’s being compared against JAVASCRIPT of all things.