Comment

Comment by joelfolksy

Why do you much prefer

  func changeName(p *Person) {
    p.firstName = "Bob"
  }
to

  void changeName(ref Person p) {
    p.firstName = "Bob";
  }

?
parent joelfolksy 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton