"Aliases"

"Furash Gary" <furashg-sZWokWQQVgMxjvOLE2GS1/[email protected]> Tue, 13 Dec 2005 08:03:30 -0700
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <A8F90A7E212A1B49A8A9EBF2E5C3E1060415C6BC@mcaosx2.ca.mcao.maricopa.gov>
Lots "on top of java" languages simplify scripting activities by
including open source libraries (xml) and then putting syntatic sugar
around them to make things simpler - so that 1 or two lines do what
might take several lines of code.
 
I wonder if theres a way to pull functionality like this into beanshell
without committing beanshell to wierd non-java syntax.  I'm NOT
recommending operator overloading, but the idea that you can take a bit
of syntax (e.g., "X + Y") and define what it does (e.g., "if the left
side is some kind of collection, add the right side to it as a new
element") is sort of nifty.  Hmm...  Just like you can make your own
commands you could make your own syntax elements.
 
Gary
 
Gary Furash, MBA, PMP, Applications Manager
Maricopa County Attorney's Office