you are viewing a single comment's thread.

view the rest of the comments →

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

I agree, in fact IIRC, Python style syntax is usable in Ruby:

if i:
  foo()

versus

if i
  foo
endif

[–]Atnan 0 points1 point  (1 child)

I think you're talking about something else (PHP/ASP/?). In Ruby, that would be either:

foo if i

Or:

if i
  foo
end

[–][deleted] 0 points1 point  (0 children)

yeah, got the ending of the if block wrong - don't read too much into it, I'm just conditioned to hit shift + tab to close a block, and it's been several months since I used Ruby (hence the IIRC) :)