Skip to content

Function arguments aren't guaranteed to resolve in order #39

Open
@fuchsnj

Description

@fuchsnj

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

When calculating the type definition of a function call, the arguments are evaluated in order, from left to right.

However, there is nothing that guarantees the actual arguments are resolved in the same order (or resolved at all).

Arguments should be resolved in order and only the Value passed to functions.

$ format_number(1000, 2, {.foo = "message"; "."}, {.foo = true; ","})
"1,000.00"

$ .
{ "foo": "message" }

$ type_def(.)
{ "object": { "foo": { "boolean": true } } }

Version

master / 9a049b5

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