Replies: 1 comment
-
Set when necessary only. Attempting to mandate this in any scenario with multiple parameter sets is going to fall apart so there will always be inconsistency. For single parameter sets there's always automatic positional binding if it's really desirable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code in
https://github.com/PoshCode/PowerShellPracticeAndStyle/blob/master/Style-Guide/Function-Structure.md
is inconsistent, sometimes settingPosition
and sometimes not. Personally I findPosition
noisy and tedious, but the MS guide saysEmphasis mine. But I see a lot of good clean powershell code without
Position
s. Dealing with them is like being in 1986 managing line numbers on a Commodore 64.2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions