What are OOP's Jargons and Complexities
Mike Schilling
mscottschilling at hotmail.com
Fri Mar 30 02:48:05 EDT 2007
Xah Lee wrote:
> So, a simple code like this in normal languages:
>
> a = "a string";
> b = "another one";
> c = join(a,b);
> print c;
>
> or in lisp style
>
> (set a "a string")
> (set b "another one")
> (set c (join a b))
> (print c)
>
> becomes in Java:
>
> public class test {
> public static void main(String[] args) {
> String a = new String("a string");
> String b = new String("another one");
> StringBuffer c = new StringBuffer(40);
> c.append(a); c.append(b);
> System.out.println(c.toString());
> }
> }
>
Only when written by someone almost entirely ignorant of Java.
More information about the Python-list
mailing list