Skip to content

variable numbers of keyword arguments as dict #4916

@WestleyArgentum

Description

@WestleyArgentum
foo(; args...)

Inside of a function with this signature, args will be an array of tuples containing symbols and values. Cool, but the array will be unordered, so I pretty much have to loop over it trying to match symbols.

I think it would be really cool if args came in as a dictionary. I'm guessing there would be some overhead involved in that, and that's perhaps why it has not been done. But I wonder if the overhead involved in looping over symbols and doing a bunch of string comparisons (I think that's what's happening, could be wrong) might even outweigh the dict creation.

I didn't see an issue, but has this been considered?

Metadata

Metadata

Assignees

Labels

breakingThis change will break codekeyword argumentsf(x; keyword=arguments)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions