How does one go about voting? Carl
On May 10, 2:06 pm, Baz <[email protected]> wrote: > Issue #110 has been > reportedhttp://code.google.com/p/openbluedragon/issues/detail?id=110&colspec=... > > Both Coldfusion and Railo have implemented the use of shorthand array and > struct notation and it would be great if OpenBD could follow suite. To > demonstrate how useful they can be, consider this array of structures: > > Array=[{ID=9999, Title='not used title', DateCreated='not used > date'},{ID=Post1.getID(), > Title=Post1.getTitle(),DateCreated=Post1.getDateCreated()}]; > > Without shorthand notation, the preceding single line of pretty code has to > be replaced with: > > Array=ArrayNew(1); > Array[1]=StructNew(); > Array[1].ID=9999; > Array[1].Title='not used title'; > Array[1].DateCreated='not used date'; > Array[2]=StructNew(); > Array[2].ID=Post1.getID(); > Array[2].Title=Post1.getTitle(); > Array[2].DateCreated=Post1.getDateCreated(); > > The latter is much more verbose, less readable and doesn't fit in line > with OpenBD's RAD goals. > > If you are into typing less and doing more, please vote for this issue! :) > > Baz > > On Sun, May 10, 2009 at 6:48 AM, Adam Haskell <[email protected]> wrote: > > Seems like we've discussed the time line on this on the steering committee > > but nothing definitive was ever reached, hence no word about it out in the > > wild. If you make a ticket and post the ticket # I'll vote for it! > > > Adam > > > On Sun, May 10, 2009 at 9:43 AM, Baz <[email protected]> wrote: > > >> OpenBD doesn't seem to support shorthand array and struct notation, like > >> MyArray = [{ID=1, Name='Name1'},{ID=2, Name='Name2'}]. Is that correct? --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
