Re: Discussion: UEL and backward incompatibility

2009-04-15 Thread David E Jones
wrote: From: Al Byers bye...@automationgroups.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org, adrian.c...@yahoo.com Date: Tuesday, April 14, 2009, 10:21 PM What is the reason there is not a method to create empty lists and maps in simple-methods? I have found

Re: Discussion: UEL and backward incompatibility

2009-04-15 Thread Adrian Crum
Cool. Thanks! I'll work on that. -Adrian --- On Tue, 4/14/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org Date: Tuesday, April 14, 2009, 11:03 PM I

Re: Discussion: UEL and backward incompatibility

2009-04-15 Thread Jacques Le Roux
--- On Tue, 4/14/09, Al Byers bye...@automationgroups.com wrote: From: Al Byers bye...@automationgroups.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org, adrian.c...@yahoo.com Date: Tuesday, April 14, 2009, 10:21 PM What is the reason there is not a method

Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
As many of you know, the introduction of the Uniform Expression Language into the framework caused some backward compatibility problems - specifically with IDs being used as Map keys. I tried to accommodate that with a couple of bits of code, but there are still some issues. There have been

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread David E Jones
Thanks for writing about this Adrian. I played with this a bit yesterday after seeing your messages and the issue about the income statement. The main point that I think is important is that it is a WAY better approach to use the natural data instead of trying to prefix it, as that is

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
David, Thanks for the reply! I don't like the prefixing either, that's why I suggested the new attribute values. To me, that makes the OFBiz scripting more like other script engines - you can't use a variable unless it is declared. One clarification that needs to be made though, in UEL the

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread David E Jones
Avoiding declaration of variables was actually one of the goals of the simple-methods, just like it is for most scripting languages (as opposed to compiled languages). I have no problem with the proposed attribute/etc, but it would be nice to find a less cumbersome alternative... :)

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
Let's see if revision 764992 solves the problem. -Adrian David E Jones wrote: Avoiding declaration of variables was actually one of the goals of the simple-methods, just like it is for most scripting languages (as opposed to compiled languages). I have no problem with the proposed

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Scott Gray
Sorry if I'm asking something obvious here and keep in mind I haven't really followed the UEL introduction very closely. You say below that these numeric Ids are evaluated to integers and my question is why exactly is that? I'm quite sure in 99% of cases the actual type of the map entry

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
Scott, You're missing something: The problem is with using integers as Map keys, not Map values. -Adrian --- On Tue, 4/14/09, Scott Gray scott.g...@hotwaxmedia.com wrote: From: Scott Gray scott.g...@hotwaxmedia.com Subject: Re: Discussion: UEL and backward incompatibility To: dev

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Scott Gray
...@hotwaxmedia.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org Date: Tuesday, April 14, 2009, 5:22 PM Sorry if I'm asking something obvious here and keep in mind I haven't really followed the UEL introduction very closely. You say below that these numeric Ids are evaluated

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
it goes. -Adrian --- On Tue, 4/14/09, Scott Gray scott.g...@hotwaxmedia.com wrote: From: Scott Gray scott.g...@hotwaxmedia.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org Date: Tuesday, April 14, 2009, 6:14 PM Isn't someEntity.someId a String

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Al Byers
, 4/14/09, Scott Gray scott.g...@hotwaxmedia.com wrote: From: Scott Gray scott.g...@hotwaxmedia.com Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org Date: Tuesday, April 14, 2009, 6:14 PM Isn't someEntity.someId a String? For example

Re: Discussion: UEL and backward incompatibility

2009-04-14 Thread Adrian Crum
Subject: Re: Discussion: UEL and backward incompatibility To: dev@ofbiz.apache.org, adrian.c...@yahoo.com Date: Tuesday, April 14, 2009, 10:21 PM What is the reason there is not a method to create empty lists and maps in simple-methods? I have found a need to do such many times. I was welcoming