Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by PunchyHamster

2 days ago

    fn fib(n: i32) -> i32

so unnecesary, just extra writing. We're developers, we understand that function return types are after first ()

       let mut i = 0;

No, no, copy Go here, i := 0 is just fine

0 comments

PunchyHamster

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities