Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I understand that the "mm" suffix [in various GTK-associated C++ binding libraries] means "minus minus," but where exactly does it come from?

I understand that there is a programming language called "C--," but if there were bindings (and I'm pretty sure I've seen some), they would be suffixed "--".

TL;DR: Is there some page on gnu.org that explains the "mm" suffix in various C++ bindings or is it just a de facto standard adopted by the open source community with no reasoning behind it?

share|improve this question
    
Voices are that -- originally came from the strongly opinionated view that C was a superior language and C++ was just a necessary evil. It was then changed in mm for the reasons stated in @Stephen's answer. – Stefano Sanfilippo May 5 '15 at 12:19
    
"Voices are"? We're going to need a much better citation than that. It could just as easily be suffixed -- because it subtracts so much of the boilerplate tedium associated with using plain C gtk/glib. I'm very impressed by what they managed to do with C, but let's not pretend it looks nice. But until someone provides a proper explanation, my guess is no better than yours - although at least I properly qualified it as a guess. – underscore_d Jan 1 at 17:31
up vote 4 down vote accepted

From gtkmm's documentation:

gtkmm was originally named gtk-- because GTK+ already has a + in the name. However, as -- is not easily indexed by search engines the package generally went by the name gtkmm, and that's what we stuck with.

share|improve this answer
    
This surface explanation is so easy to find that a much better question would have been why they originally used --. But, alas, I've not seen one (and "Voices are" doesn't cut it). – underscore_d Jan 1 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.