Results 5 comments of Tim Curwick
trafficstars

I use Allman style when writing code for clients and sometimes for colleagues. I use a variant on Allman when I don't care about anyone else.

I strongly agree with Joel. Returning nothing when there is nothing to return is the appropriate response and not an error.

Joey, Re you're being "open to hearing about more scenarios where non-terminating errors are...painful...." At my level, much of my code is within try/catch blocks with ErrorActionPreference set to Stop,...

This also happens in the ForEach method: ``` $Script = @' $A = @() (1..2).ForEach{ $A += $_ } $A '@ Invoke-ScriptAnalyzer -ScriptDefinition $Script | Select -ExpandProperty Message ``` `The...

@Halkcyon, you can download the PowerShell 3.0 specification doc from 2012, that I referenced in my original post above. https://www.microsoft.com/en-us/download/confirmation.aspx?id=36389 When I opened this issue 5 years ago, I mistakenly...