8000
Skip to content

Make an RFC for multiple values #78

@sorawee

Description

@sorawee

Do we need multiple values? If so, what's the best way to make it integrate well with the language? Right now, it's not.

As an example, if I have a function f that returns two values, and I want only the first returned value to get passed to function g, the best I can do is:

(let-values ([(x _) (f foo bar)])
  (g x))

Is there anything better that we can do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0