From: Duncan C. <dun...@wo...> - 2005-04-06 11:51:12
|
On Wed, 2005-04-06 at 09:45 +0100, Axel Simon wrote: > From my point of view it's ok to break things before 1.0. So if you find > sensible argument swaps, then that's fine. It's often difficult to see > what is sensible. Passing the object as an argument first must be the > right thing, anything else is then up to taste/application. Can you give > an example of what you would like to swap? There are a couple cases where the object is not passed as the first argument, for no apparent reason. So I'd change it to make it consistent with the 'object first' pattern. Theres a case where the C version takes width, height but the binding takes the arguments the other way around. Again, that's inconcsitent with the other bindings in the same module. The only ones where I am suggesting swapping the arguments for convenience (rather than where it was probably a mistake in the first place) is for the main loop idle and timout handlers. I think I've mentioned this before. at the moment you have to say: timeoutAddFull (do ...) 500 priorityDefault but it would be more convenient to be able to say: timeoutAddFull 500 priorityDefault $ do ... I'll go through and make a complete list then? Duncan |