Re: [AD] Function parameter ordering conventions

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Matthew Leverton wrote:
putpixel(color, x,y) seems wrong to me, even if it does follow the
convention more closely than putpixel(x,y, color). Do a Google search
for putpixel functions and see how many place the color first.

I don't think we should be basing Allegro on some other API. We should just do what is best, and I still think putpixel(color, x, y) is not only more consistent, but reads better too. Sure, Allegro 4.2 uses putpixel(x, y, color), but we want Allegro 5 to be better than Allegro 4, right?




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/