-
Notifications
You must be signed in to change notification settings - Fork 293
Description
I love this project. I obsess over code formatting (not in a good way). Anyway, one thing I can't find mentioned is how to handle type accelerators with regards to casing and fully-qualified or not. For instance:
string or String or [System.String] ?
What I'm doing now is that for parameter declaration I use lowercase:
string$InputString
And:
$InputString -is string
but, I title case it when I am calling a method:
I have no idea why I chose that style and I'm not necessarily consistent with it across projects.
And, for those types that don't have an accelerator listed (System.Object, System.Math), I typically use either the title case or the fully qualified. Not sure why I treat them differently since [object] and [math] are certainly valid, I just do and blame MS for the lack of a listed accelerator for it (instead of blaming my OCD). sigh
Any thoughts/opinions on this one?