zycte
6/17/2006 11:24:00 AM
You learn the ruby language in a few days, the syntax in an hour.
Syntax is one of the main reasons I use the language. It doesn't get in
your way, as C/C++/Java syntax sometimes does (oh, crap, on line 529 I
forgot to place that f**** ";" again...
It's easy for the writer, it's clean for the reader, and it is usually
a lot shorter, although not only Ruby's syntax is accountable for this.
On 2006-06-17 12:15:18 +0200, howachen@gmail.com said:
>
> Robert Klemme 寫é?ï¼?
>
>> howachen@gmail.com wrote:
>>> I am wondering why Ruby or Python not follow c-style syntax, just like
>>> what php does.
>>
>> Why should they?
>>
>>> Are there any advantages in the current Ruby syntax implementation over
>>> the traditional C-style syntax?
>>
>> Just look at a program written in C and Ruby. The clean and clutter
>> free syntax of Ruby is one of its major assets. Also, C is not an OO
>> language so its support for OO constructs is logically weak to nonexisten
> t.
>>
>> Kind regards
>>
>> robert
>
> how about Java/C++ like syntax?
>
> I just want to know the "rationale" behind ruby or python synatax,
> since no matter how simple or how clear it is, people always don't want
> to learn a new language...a little bit risky...