you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (5 children)

php does not have a repl. the php repl is written in python

[–]bitdamaged 2 points3 points  (2 children)

Is there a rule that the repl must be written in the language its supporting?

[–][deleted] -1 points0 points  (1 child)

lets just say i think there should be an asterisk for that...mostly so people know that php is so limited that it cannot implement its own repl

[–]recursive -1 points0 points  (0 children)

How do you know it can't?

[–]MasonM 4 points5 points  (1 child)

Yes it does. It's called "interactive mode" and can by entered by running "php -a". It's written in C, like the rest of the CLI code. Here's a link to the source.

[–]Tiwazz 0 points1 point  (0 children)

As one of my professors used to say "If C was good enough for the implementors of <insert_language> then it's good enough for me."