tag:blogger.com,1999:blog-22587889.post115504213974217347..comments2024-02-11T13:21:47.930+05:30Comments on Ruminations of a Programmer: XML Integration in Java and ScalaAnonymoushttp://www.blogger.com/profile/01613713587074301135noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-22587889.post-16333381008234247852007-10-16T14:12:00.000+05:302007-10-16T14:12:00.000+05:30An example of tidying up your code. Here is your i...An example of tidying up your code. Here is your isOpen method:<BR/><BR/>def isOpen(ft: Node) = ft \ "state" != approved<BR/><BR/>Points to note:<BR/>* We have type inference in Scala so we needn't type annotate everything :)<BR/>* == and != use Object.equals<BR/>* No need for {} especially in pure functions such as this one<BR/>* no need for if(condition) false else true (in any language), since !conditionTony Morrishttps://www.blogger.com/profile/17206456907461293947noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-20763800737451925402007-04-30T08:56:00.000+05:302007-04-30T08:56:00.000+05:30XMLisp may also be worth a look.<A HREF="http://www.agentsheets.com/lisp/XMLisp/" REL="nofollow">XMLisp</A> may also be worth a look.Jeremy Hugheshttps://www.blogger.com/profile/14265015716597110506noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-54835236137650876152006-08-24T22:45:00.000+05:302006-08-24T22:45:00.000+05:30you may want to check out XJ (http://www.research....you may want to check out XJ (http://www.research.ibm.com/xj). We have literals + XML type checking.Mukundhttps://www.blogger.com/profile/15550624523504431203noreply@blogger.com