Re: PHP on .NET DLR
[email protected] (K T Ligesh) Sun, 12 Aug 2007 03:30:14 +0530
| Newsgroups | php.evangelism |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 11, 2007 at 05:14:44PM -0400, Mike Schinkel wrote:
> According to the book written by the PowerShell team lead, Powershell is
> part Perl and part Python. It is not part C#. And it doesn't have those
> infernal semi-colons. '-)
>
It HAS. If you want multiple command on the same line, you use semi-colon.
----------------
function main ($v) {
## Store the performance counters we need
## for the CPU, and Disk I/O numbers
$cpuPerfCounters = @{}; $ioOtherOpsPerfCounters = @{}; $ioOtherBytesPerfCounters = @{}
$ioDataOpsPerfCounters = @{};
$ioDataBytesPerfCounters = @{};
$processes = $null;
$lastPoll = get-date;
foreach($b in $c) {
}
}
----------------
The above is a perfectly valid powershell script. It is a snippet from top.ps1, the equivalent of the top command. Now, how can anyone in their right mind claim that the above is not C. It is more C than even perl, since Perl doesn't allow defining functions with full arguments.
I think you should just give up. The Future is C. And for good reasons. Programming shouldn't be descriptive. If anyone wants descriptive languages, let them become an author and write novels.
Thanks.