• shnizmuffin@lemmy.inbutts.lol
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    In your example, without the comment, I’d have no way of knowing it was a customer ID I’m getting, unless the only objects with IDs are customers.

    • relevants@feddit.de
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      I mean, the example kinda implies that this is on a Customer type. Otherwise you’d have a method getCustomerId instead.