Discussion about this post

User's avatar
Randal L. Schwartz's avatar

"That means (int, String) is one type, (String, int) is another, and (String name, int age) is yet another separate type."

Actually, the first and third types there are the same. Two positional parameters, first one String, second one int. If you were trying for named parameters, you need curlies: ({String name, int age}).

Expand full comment
1 more comment...

No posts

Ready for more?