Compiler improvements: labels with unused arguments #276
-
I found something that could be better to make our lives easier:
This code is a placeholder for now and of course this is all valid code but if I call this function using:
obviously it will fail. I wish it worked, alternatively if I change all the arguments to _ it also doesn't work... then it fails with an error:
of course I can always remove all arguments and it will be fine but I would have preferred to leave those arguments as a placeholder. Alternatively I can call this function with passing arguments WITHOUT using labels but simply using order of arguments (classic / typical) but this is not ideal I guess. I would say this is post alpha and not that important now, just flagging usability / ergonomics wishes. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you can accomplish that by defining your function like this:
|
Beta Was this translation helpful? Give feedback.
you can accomplish that by defining your function like this: