• Pxtl@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Exactly. If it’s a statically typed language and the function has a clear name? I know what type it is, I know what it’s for, I’m good.

    There are far worse sins, like intermediate variables or worse, public class members named “obj” or “data”.

    • qaz@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      GitHub doesn’t show types. So if the value is given to another function you would have no way of knowing what type it is unless you read the file that other function is declared in.