Re: PHP on .NET DLR

From: Date: Sat, 11 Aug 2007 22:00:14 +0000
Subject: Re: PHP on .NET DLR
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.evangelism 
Request: Send a blank email to php-evangelism+get-435@lists.php.net to get a copy of this message
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.

« previous php.evangelism (#435) next »