Questions tagged as 'parâmetros'

5
answers

What is the difference between parameter and argument?

I have always used the terms "parameter" and "argument" as if they were synonyms: what is passed to a function and / or what the function receives as input. In the same way, I have been reading one and another term, in English and Portuguese, so...
asked by 13.09.2014 / 23:40
3
answers

Should we validate function parameters?

In languages like Java, the method parameters are "validated" in the compilation (at least the type): public void facaAlgo(String str) { // ... } // em algum outro lugar: int i = 2; this.facaAlgo(i); // erro de compilação! In dynamic typ...
asked by 02.12.2014 / 12:46