[Home] [By Thread] [By Date] [Recent Entries]


> Here's a Water program that creates a class, defines a method,
> creates an instance, and call a method on the instance.
> 
> <defclass company stock_symbol price revenue expenses>
>  <defmethod PE_ratio>
>    .price.<divide .revenue.<minus .expenses/> />
>  </defmethod>
> </defclass>
> 
> <company
>   stock_symbol="IBM"
>   price=86.11
>   revenue=1022110
>   expenses=382828
> />.<PE_ratio/>

Wow.  This reads to me like a very strangely obfuscated species of CLOS.  The 
"compatible" debate aside, I really have a hard time imagining how developers 
will go for this.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html
4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su
ite5-i/
XML class warfare - http://www.adtmag.com/article.asp?id=6965
MusicBrainz  metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi
nk14.html



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member