News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How strict is your dynamic language?
July 27, 2006 @ 06:00:58

Harry Fuecks wonders in this new post on the SitePoint PHP Blog "how strict is your dynamic language?"

Considering the "big four" dynamic, procedural languages; Perl, Python, PHP and Ruby, to an extent they're much of a muchness, offering only small variations on the same theme (ignoring PHP's lack of support for functional-style programming). But sometimes little things make a big difference, and perhaps most of all when your code is given input to handle which it wasn't designed for. Knocked up a simple example to compare them in this area...

He compares four languages - Perl, PHP, Ruby, and Python - by giving, for each, code examples and what the output would be, including what would error out. These examples help to illustrate his final points:

  • where is the point when a fatal error should be raised?
  • what is it the languages should actually complain about?

0 comments voice your opinion now!
strict dynamic language errors perl python ruby compare strict dynamic language errors perl python ruby compare


blog comments powered by Disqus

Similar Posts

Medium.com: PHP7: More strict! (but only if you want it to be)

Chris Shiflett's Blog: Blood, Sweat, and Swear: Terry Chay on Pro-PHP Podcast

PHPClasses.org Blog: PHP compiler performance

Wes Shell's Blog: Quicky 1: PHP is Loosely Typed – What does that Mean?

Kevin Schroeder's Blog: What to make of TIOBE's PHP results


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant series community extension library framework list podcast example release security interview laravel5 language version api introduction php7 laravel opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework