Linked by Adam S on Tue 8th Jul 2008 12:47 UTC
Thread beginning with comment 321917
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[4]: I don't get PowerShell
by grfgguvf on Tue 8th Jul 2008 17:55
in reply to "RE[3]: I don't get PowerShell"





Member since:
2006-01-06
So they intentionally chose a Perl-like syntax, hence the $.
Unless you have a quote from one of the developers of powershell somewhere I'd really have to question this statement. That sounds a lot like "Oh I wanted to make a car with the power of a Porsche so I copied the horse emblem."
The reason why a lot of early languages used variable identifiers such as the $ was because it made life so much easier from the parser point of view, especially if you are designating a difference between the variable as an object in its own right or whether you wanted the contents of the variable.
Now with regard to why powershell uses it I don't have a good answer, its supposed to be based around the .net framework which doesn't need those type of identifiers and to be honest it feels like if they were constructing a scripting language from scratch they would have made it syntactically comparable to more modern languages.