[cl-opengl-devel] Minor style questions

Oliver Markovic entrox at entrox.org
Wed Feb 8 11:54:29 UTC 2006


On 07.02.2006, at 02:25, Luís Oliveira wrote:

> - I pushed a patch that implements a trivial WITH-PUSHED-MATRIX  
> macro. Would WITH-MATRIX be a better name though?

No, I think WITH-PUSHED-MATRIX is fine as is.


> - Shouldn't the arguments to gl:clear have the "-bit" end stripped  
> out? Since we're hiding the fact that they are bitmasks anyway...

I have also thought about that one, but decided against it because
I didn't want to deviate too much from the specification. Introducing
semi-arbitrary naming changes looked like too much of a headache
to me: if we strip off the -bit, should we also strip off the -hint in
HINT-TARGET? Should the redundant light-model- or pixel-map-
prefix go? If not, why snip off -bit? If yes, it needs to be written  
down
somewhere.

It's hard to stay consistent and obvious to the user. Personally, I  
wouldn't
like to have to look into the documentation to see how some names
get translated from the spec/C-side to Lisp. YMMV.

-- 
   Oliver Markovic






More information about the cl-opengl-devel mailing list