--- Begin Message ---
Hello

In a earlier question I get a remark to think better about naming things.
Now I did  a challene where I have to find anagrams of a given word in a collection,

So I did this :

findAnagramsCandidates: aCollection subject: aWord
    | charBag |
    charBag := aWord asLowercase asBag.
    ^ aCollection
        reject:
            [ :word | (word sameAs: aWord) or: [ word asLowercase asBag ~= charBag ] ]


is my naming here better or can i improved and if so how ?

Regards,

Roelof



--- End Message ---

Reply via email to