[ANN] MagmaServerLoader-cmm.19 - Complex Queries

goran at krampe.se goran at krampe.se
Wed Aug 9 09:06:05 UTC 2006


Hi Brent!

Brent Pinkney <brent.pinkney at aircom.co.za> wrote:
> Hi Göran,
> 
> Contratulations of your Seaside + Magma application.

Thanks!

> As for the new complex queries, it is preferable to use a more sematically meaningful
> formal argument in the #where: block.
> 
> viz:
> 	 friends := self people where: 
> 				[ :person | person lastName between: 'Jackson' and: 'Muller' ].
> 
> instead of:
> 
> 	 myReader := aMagmaCollection where:
> 		 		[ :reader | reader read: #lastName from: 'Jackson' to: 'Muller' ].
> 
> Magma uses all sorts of posh Smalltall techniques to make this level of readability,
> and hopefully elegance, possible.

Yeah, I know how it works - I just wanted to be a bit low level. Earlier
MagmaCollection implemented the read:from:to: message but now I need to
go through the where: entry - which makes it a bit contrived.

regards, Göran


More information about the Magma mailing list