Live data from Hacker News

Comparing PHP, Perl, Python and Ruby

hyperpolyglot.org

91–92 of 92 posts

Re: Comparing PHP, Perl, Python and Ruby

#91
post #19

Earlier quoted context omitted.

True, but PHP 5.4 doesn't even have a stable release yet & many people haven't even adopted 5.3.

Today, PHP 5.4 are released as stable.

Until it is ubiquitous, short syntax should still be used with caution.

Re: Comparing PHP, Perl, Python and Ruby

#92
post #84

PHP repl is actually php -a

Note that this is not a traditional repl in the style of of Python or IRB that evaluates each line individually. With php -a you have to enter an entire script, and then exit to run it, and which point you can no longer interact with the variables, etc. Also it's super backwards in that you need to add If you really want a repl that's useful for PHP check out http://www.phpsh.org/ by Facebook.

No, you can do evaluation line by line, but it isn't exactly nice. Just typing php forces you to type in the entire script.
Post reply on HN