[ruby-opengl-devel] opinions on rubygl
grin.k1tt3n at gmail.com
Fri Sep 1 01:24:33 EDT 2006
On 8/31/06, John Gabriele <jmg3000 at gmail.com> wrote:
> Hm. It also occurs to me that, if we went for the all lowercase names
> without the gl/glu/glut prefixes, when you do that "include Gl, Glu,
> Glut", you'd be polluting your namespace quite a bit. For graphics
> folks, they may already have methods with names like vertex, material,
> draw_pixels, get, scale, rotate, look_at, enable, and so on. Same goes
> for the way rubygl turns those constant names into un-prefixed symbols
> (:alpha, :rgb, etc.). Looks nice at first, but may turn into a
> nuisance later.
> Yeah, that could actually turn into a mess, and then folks probably
> just wouldn't bother with the "include" statement anymore, which
> kinda' defeats the purpose of trying to make it so you don't have to
> prefix everything with a module name.
Great point, I didn't think of that, but that would definitely be an issue.
I've had some struggles myself
with the ruby namespace, and it wasn't fun.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ruby-opengl-devel