Re: Keyword Arguments

Friedrich Dominicus <[email protected]> Fri, 15 Jun 2012 11:10:41 +0200
Newsgroups gmane.comp.lang.io
Organization Q-Software Solutions GmbH
Message-ID <[email protected]>
> That leaves us with the question: Should we be making it easier to implement 
> bad designs than good ones?
Isn't it in the end about readability? And  shouldn't the intentions be
visible? Let's takke the sort example

list(1,3,2) sort(<) or the like 
or maybe
list(1,-3,-2,2,50) sort(<) filter (> 0) 

fine. Whereever do you find such kind of comparison without the stuff
that is compared? 

Have anyone ever seen a lonely < in maths? I can't remember having seen
that. 

So what is more readable and understandable

the above or 

list (1,3,2) sort([:a :b| a < b]) filter([:other| other  > 0])

Yes i know it's not  Io bu I guess you still "understand" it. What
feel's more  natural?

or would you prefer

comparator := MyComparator on: a and: b
myFiler :=  MyFilter compareAgainst: 0.


list(1,3,2) sort(comparator) filter(myFilter)


?

You may pick

Regards
Friedrich

-- 
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim 
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus