Dear Jeremy,

Yes, I'm aware that the PHP version is optimized - this is something which will be corrected (de-optimized).

Kind regards,
Samuel

On 4/05/2010, at 11:15 AM, Jeremy Woertink wrote:

> Not that it matters, but I was curious as to why the doors examples are 
> different.
> 
> For example, the ruby example could be written:
> 
> for i in (1..100) do
>  root = Math.sqrt(i)
>  state = (root == root.ceil) ? "open" : "closed"
>   puts "Door #{i}: #{state}"
> end
> 
> which would closer match the PHP one:
> 
> <?php
> for ($i = 1; $i <= 100; $i++) {
>    $root = sqrt($i);
>    $state = ($root == ceil($root)) ? "open" : "closed";
>    echo "Door $i: $state";
> }
> ?>
> 
> I just think having a side by side comparison of closer related methods 
> might help.
> Good luck with the project! I'll probably use it if you throw 
> Objective-C or Lua on there :) I really want to learn those two, and the 
> resources I have found aren't that great.
> 
> 
> ~Jeremy
> -- 
> Posted via http://www.ruby-forum.com/.
>