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 jbreckmckye

10 days ago

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

2 comments

jbreckmckye

Reply

alain_gilbert  10 days 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  10 days 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