Code conversion tool


#1

Hi
is there any tool / utility which can convert code from php to ruby ?
thanks


#2

rohit mehra wrote:

Hi
is there any tool / utility which can convert code from php to ruby ?
thanks

If such a tool existed, it could at best convert small snippets, and it
wouldn’t be real Ruby code, it wold be PHP with Ruby syntax.


#3

Andreas S. wrote:

rohit mehra wrote:

Hi
is there any tool / utility which can convert code from php to ruby ?
thanks

If such a tool existed, it could at best convert small snippets, and it
wouldn’t be real Ruby code, it wold be PHP with Ruby syntax.

in Theory this tool can be exist.


#4

What would be the point if it didn’t generate real Ruby code?


#5

Tristan Havelick wrote:

What would be the point if it didn’t generate real Ruby code?
I think the point is that it would be code that would happily run in the
Ruby interpreter, but would be written with all PHP’s idioms, not taking
advantage of any of Ruby’s niceness.


Alex