Named arguments reorder effects
See original GitHub issuedef foo(bar: Int, bat: Int) = 1
def p(x: Int) = { println(x); x }
Scala 2.12:
scala> foo(bat = p(1), bar = p(2))
1
2
Dotty:
scala> foo(bat = p(1), bar = p(2))
2
1
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to automatically reorder named function arguments with ...
Is there any way with Resharper - or any other tool - to automatically reorder named parameters solutionwide so that they can perfectly ......
Read more >Named and Optional Arguments - C# Programming Guide
Named arguments free you from matching the order of arguments to the order of parameters in the parameter lists of called methods. The...
Read more >Named parameters - Rosetta Code
Create a function which takes in a number of arguments which are specified by name rather than (necessarily) position, and show how to...
Read more >PHP 8.0 feature focus: Named Arguments - Platform.sh
In PHP, named parameters are entirely controlled by the caller. All functions and methods are, automatically, named-parameter supporting.
Read more >Named argument enhancements for function calls #498 - GitHub
By named function arguments, I am referrin. ... arguments specified by name -- You explicitly assign to parameters, order does not typically ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a nice test case that includes default parameters.
I will have a look.