Hi,
I'm kind of confused/lost when to use one form vs the other when defining parameters in a function.
f.ex.
1) param() defined in the function
function get-total-1() {
param([int] $a, [int] $b)
return $a+$b
};
2) param as a function signature
function get-total-2([int] $a, [int] $b){
return $a+$b
};
When should you use get-total-1 vs get-total-2 parameter form in a function?
Or is there any reason to prioritize one form vs the other ?
Thanks a lot for helping me clarifying this (problem).
Kind regards,
Didier