easy to get into trouble for sure.

  • csm10495
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    … effortless casting could be a negative depending on who ya ask.

    • SuperSpruce@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      I’m of the opinion that it’s a positive. Often I use “string” + number to access HTML elements and it just works. I can even use it to concatenate arrays.

      Meanwhile, when I try to debug in C++ with cout statements, half the time it doesn’t even do anything even though I use std::to_string().