I’m a lazy programmer, and all this hash[“Key”] punctuation is getting on my nerves. Is there a syntactic sugar (perhaps a different object type) that allows you to create hashtables that are accessed using member method syntax (hash.Key)? There are many easy hacks to do this in Ruby. Is there a hack to do this in Powershell?
I’m a lazy programmer, and all this hash[Key] punctuation is getting on my nerves.
Share
Yes:
NOTE: It’s also something that works on any IDictionary, not just Hashtables.