Replies: 1 comment
-
Renaming the parameter is the way to go here. The convention that our core team follows here is to prefix the parameter name with an underscore, e.g. function myFactoryFn(_name: String) = new mySomething {
name = _name
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I often find myself writing the code like:
Which creates an infinite recursion.
The way I deal with it is by renaming function parameter.
Which is suboptimal from consistency and documentation perspective.
Is there a better way to deal with the problem without naming every parameter aName or similar?
Beta Was this translation helpful? Give feedback.
All reactions