i born in 1980.
i learned basic in 1990, for basic for computer programming.
i learned pascal in 1992, for do some contest in algorithm.
i learned java in 1998, loved it and for fun and job after 2002.
i learned python in 2005, found it attractive. but it's library is not as goodas java yet, through it's OO and grammar looks better.
i found Io (iolanguage.com) today, and found it maybe better.
So what is a good language?
i think,
* dynamic, object with fields and methods
* grammar, write as quick as my mind, (for more respect to programmer: easyto implement a compiler and interpreter)
* functionality, usability, library, performance, portability, ...
updates:
Look, i'm on to make my own language, neoelang. it's base on java, compilable to java, run on jvm, can use rich java api, but
is no-type, more dynamic on field, method and extends. it should be more "reusable": write once, use anywhere in program!
updates:
After i consider on neoelang at a weekend, it is hard. Monday I found python can do what i expect neoelang should do in
google python group (http://groups.google.com/group/comp.lang.python/browse_thread/thread/6ad80f520eb58449?hl=en) , thanks they helped me worked out , result in such a program:
class C1(object):
def v(self, o):
return "expected "+o
class C2(object):
def m(self):
print self.v("aaa")
class C3(object):pass
from types import MethodType
def addMethod(obj, meth):
f = meth.im_func
setattr(obj, f.__name__, MethodType(f,obj))
def test1():
o = C3()
addMethod(o, C2.m)
addMethod(o, C1.v)
o.m()
test1()
print C1.v.im_func(None,"xxx")
-----
2006年10月16日星期一
订阅:
博文评论 (Atom)
没有评论:
发表评论