Hacker News new | ask | show | jobs
by Cojen 1739 days ago
I think the best thing we have is the new `record` feature. You can declare a small public record before the method with the return type, and by using the `var` keyword, the caller doesn't need to repeat the type declaration.