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

Comment by jbreckmckye

6 months ago

I like the bang operator for propagating errors. Shame to lose multiple returns though

2 comments

jbreckmckye

Reply

alain_gilbert  6 months ago

That's why there is a "Tuple" expression that you can use instead, which allows you to easily return multiple values, and destructure them as well.

Yoric  6 months ago

Well, it seems to support tuples, which are more powerful.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities