You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow (some) method names that happen to be keywords #2217
I wouldn't think PowerShell needs a special character. I think PowerShell's general concept of context serves better. Pretty much all the useful keywords have no other use in class { }. Only hidden and static would truly be reserved. Even base only has a very specific context it can be used in.
Activity
rkeithhill commentedon Sep 9, 2016
C# has that handy
@classway to use a keyword as an identifier. I wonder if there is any punctuation left that PowerShell could use for this?msftrncs commentedon Mar 10, 2019
I wouldn't think PowerShell needs a special character. I think PowerShell's general concept of context serves better. Pretty much all the useful keywords have no other use in
class { }. Onlyhiddenandstaticwould truly be reserved. Evenbaseonly has a very specific context it can be used in.