You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Swift methods arguments are part of the methods name, so we can have:
publicfunc foo(a :Int32)->Int32{return a
}
publicfunc foo(b :Int32)->Int32{return b
}
publicfunc foo(_:Int32)->Int32{return3}
We can also have a property of the same name:
publicletfoo:Int32=0
All above the can coexist within the same scope without conflicts. C# does not allow for such flexibility so we will need to introduce some method to resolve such conflicts.
One way might be to append argument names to the function
The text was updated successfully, but these errors were encountered:
In Swift methods arguments are part of the methods name, so we can have:
We can also have a property of the same name:
All above the can coexist within the same scope without conflicts. C# does not allow for such flexibility so we will need to introduce some method to resolve such conflicts.
One way might be to append argument names to the function
The text was updated successfully, but these errors were encountered: