Issue 618 in moose-technology: [Glamour] Sorting of lists should be made easier

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 618 in moose-technology: [Glamour] Sorting of lists should be made easier

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 618 by [hidden email]: [Glamour] Sorting of lists should  
be made easier
http://code.google.com/p/moose-technology/issues/detail?id=618

Currently, a user has to do the following to sort a list:

a list
   display: [:x | ((... x ...) ...) sorted: [...]]

or

a list
   display: [:x | ((... x ...) ...) asSortedCollection]


All these parenthesis make the code a bit hard to read. I propose

a list
   display: [:x | (... x ...) ...];
   sorted: [...]

or

a list
   display: [:x | (... x ...) ...];
   sorted

which removes a level of parenthesis and simplifies indentation.


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 618 in moose-technology: [Glamour] Sorting of lists should be made easier

moose-technology

Comment #1 on issue 618 by [hidden email]: [Glamour] Sorting of  
lists should be made easier
http://code.google.com/p/moose-technology/issues/detail?id=618

Fixed in Glamour-Scripting-DamienCassou.121 and  
Glamour-Presentations-DamienCassou.92.

Applied in Glamour-Examples-DamienCassou.178.

What do you think?

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 618 in moose-technology: [Glamour] Sorting of lists should be made easier

moose-technology
Updates:
        Status: Fixed
        Owner: [hidden email]
        Labels: Component-Glamour Milestone-4.4

Comment #2 on issue 618 by [hidden email]: [Glamour] Sorting of  
lists should be made easier
http://code.google.com/p/moose-technology/issues/detail?id=618

Thanks. I think the idea is nice. We should only keep an eye for possible  
issues resulting from overloading displayValue with the sorted block. But,  
at the moment is fine as it is.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev