Quirk of the day - NSMakeRange

Oscar Wilde may have said "Consistency is the last refuge of the unimaginative", but consistency in method and function names has a lot to recommend it.

For example, given the ever popular and useful …

CGTypeMake

… you would be forgiven for expecting there to be …

NSRangeMake

But no, instead it's …

NSMakeRange

My poor old neurones are taxed enough without this.

As a random aside, years ago (decades in fact) I enjoyed exploring IBM's AS/400. The command language had a beautifully consistent system of concatenating three letter abbreviations to form commands. So if you didn't know the command to power the system down, you could take a pretty good guess that it would be "pwrdwnsys". Want to do it right now, just add a "*immed". Hours of fun.