CSC/ECE 517 Fall 2009/wiki1a 11 AS: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 16: Line 16:


== Differences in their language features ==
== Differences in their language features ==
The first thing to be noted in Ruby is that in Ruby everything is an object, whereas in Python you have the liberty to code without using objects.
// include example here
In ruby, the programmer can use blocks to extend the language for application specific control statements where as in Python you are supposed to use only the control statements provided by the language.

Revision as of 00:31, 5 September 2009



Ruby vs Python

Definition of Ruby and Python

Ruby is a dynamic, reflective, general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.

Differences in their language features

The first thing to be noted in Ruby is that in Ruby everything is an object, whereas in Python you have the liberty to code without using objects.

// include example here

In ruby, the programmer can use blocks to extend the language for application specific control statements where as in Python you are supposed to use only the control statements provided by the language.