Wednesday, September 28, 2005

Ruby and Ada do look alike

I once thought ruby is mostly inspired by perl, since Yukihiro Matsumoto mentioned ruby inherited the Perl philosophy. But it is hard to explain where a few "wired" syntax come from (considering my C/C++/C#/Java background), for example:

Ruby C/C++/C#/Java
begin/end {}
rescue try/catch
raise throw
elsif else if
case/when switch/case
nil NULL/null

Actually it is all from Ada. Definitely this is not a news, I failed to pay enough attention since I know nothing about Ada.

You can check out syntax across languages per category to compare the two.


Post a Comment

<< Home