twostraws / HWSTranslation

A community project to translate free Swift tutorials
https://www.hackingwithswift.com
97 stars 82 forks source link

Doubt on EN paragraph in 0-11.md #274

Open frivas opened 6 years ago

frivas commented 6 years ago

Hello @twostraws,

I am working now on 0-11.md and there is something that caught my attention, this paragraph:

Swift’s solution is to let you specify one name for the parameter when it’s being called, and another inside the method. To use this, just write the parameter name twice – once for external, one for internal.

We are talking about functions, plain functions, we have not introduced the concept of classes yet, so calling it a method might seem confusing at the moment. I know you are mindful when writing and as I have seen there is basically nothing out of place so, may I ask if using method is what you wanted to write?, if not, may I PR the change to "function"?.

Thank you very much.

P.D: English is not my mother tongue so I might be stepping onto your toes here, if so, sorry for that. Just wanted to clarify for the translation because words are different "función" y "método" and are used in different contexts.

xpereta commented 5 years ago

I bet "function" is more suitable at this point: https://www.hackingwithswift.com/example-code/language/whats-the-difference-between-a-function-and-a-method

twostraws commented 5 years ago

Yes, function is correct here. Good spot!