Automating the world one-liner at a time…
Smith Catar was looking at my Tech Ed demos and noticed that I used block comments. These are not in the CTP that you have so I guess I sorta let this one leak out. Yes - V2 will have BLOCK COMMENTS!!!
Block comments start with "<# and end with "#>". e.g.
<# This isablock comment#>
Happy happy. Block comments - you asked for them, you'll get them.
Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
Nice to hear! However the <# #> literals look quite ugly to me. Any comments on why you choose these literals and not e.g. /* */ like in c++, c# and other languages?
Oh...Microsoft will excute Stop-Leak cmdlet for you...
Thanks Jeffrey, good to have this feature coming!
Block comments good. Choice of delimiters? Hmmm.
One of my favourite languages REBOL (hint, hint, prod) has many different datatypes. Okay, maybe far too many datatypes? ;->
But, one of those data types is a tag!
type? <html width="100">
in much the same way you can go:
type? "My name as a string"
This means you can use xml and html in your code without having to escape the entire text on quotes...
ie write-host "<tag here="30">
write-host <tag here="30">
Now I'd much rather see the angle brackets used for a nifty language features like this with respect to XML - than used for block comments..
Cos then.. would return a list of three items...
"This is my $name"
web-page | out-server