Ruby implemented in C and not C++?

C

Chris Pine

Hello,

I was just wondering idly if anyone knows why matz chose C rather than C++ to implement Ruby in? Aside from trashing C++, I was wondering what technical issues (if any) were at the heart of this decision.

Thanks,

Chris
 
A

Austin Ziegler

I was just wondering idly if anyone knows why matz chose C rather
than C++ to implement Ruby in? Aside from trashing C++, I was
wondering what technical issues (if any) were at the heart of this
decision.

Well, remember that Ruby was first written just over ten years ago
(almost eleven now I, I think). At that point, C++ portability was a
pipe dream. Now, it's just wishful thinking, especially if you use
the STL.

Also, it's apparently much easier to implement an OO language in a
non-OO language, because then you don't confuse yourself with
conflicting object models, or find yourself tempted to make the
language work with the different object model.

But, as always, IANM, so those are my best guesses and that's it.

-austin
 
J

James Britt

Austin said:
Also, it's apparently much easier to implement an OO language in a
non-OO language, because then you don't confuse yourself with
conflicting object models, or find yourself tempted to make the
language work with the different object model.

But, as always, IANM, so those are my best guesses and that's it.


Isn't that pretty much what matz once said, someplace? In some
interview, I think.


James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top