19

As pointed out in this question, is widely misused. Although the tag description is:

An inline function is a function upon which the compiler has been requested to perform inline expansion. In other words, the programmer has requested that the compiler insert the complete body of the function in every place that the function is called, rather than generating code to call the function in the one place it is defined. (However, compilers are not obligated to respect this request.)

it is also used to refer to e.g. (and lots of other related tags). Additionally, the existing refers to the same topic and is much less ambiguous (I can see no particular reason that inline should be considered synonymous with inline-functions rather than any of the other related tags).

I therefore think that inline should be replaced with more meaningful tags and burninated.

22
  • 2
    what compiler are you referring to? As far as I'm aware, the tags are added to the system (past and present) by reputable users. Their association to questions is managed by users.. Feb 18, 2015 at 14:39
  • I understand you're attempting to be less ambigious, but inline is not an attribute, keyword, or accessor in css; It is quite clearly a keyword as accessor of a function. inline void hello() Feb 18, 2015 at 14:40
  • 12
    @BrettCaswell the title was a joke, along the lines of "Unmount the [HDD]" see here. And not all tags have to be keywords, the goal is to be unambiguous about what tags should refer to on SO, not reflect the syntax of any languages.
    – jonrsharpe
    Feb 18, 2015 at 14:42
  • 2
    These users are not looking for inline-block. The display property in CSS has three values which are most commonly used: inline, inline-block, and block. I don't believe that property is complicated enough to warrant separate tags, though. I'd recommend retagging all the CSS questions to just css (as well as merging inline-block) and making the inline tag more specific as to its purpose.
    – animuson StaffMod
    Feb 18, 2015 at 14:45
  • 1
    @animuson inline-block was just an example (this was a particularly unambiguous example of misuse), there are various other tags that relate to "inline". If this CSS-related use is also not appropriate then that should go too. Do you disagree that inline should be deprecated in favour of inline-functions?
    – jonrsharpe
    Feb 18, 2015 at 14:48
  • 1
    I do agree with you, I was just pointing out that not all CSS questions tagged with inline are going to be about inline-block, as they are different values. I've gone ahead and synonymized inline-block into css though, so any CSS questions can just have the tag removed.
    – animuson StaffMod
    Feb 18, 2015 at 14:53
  • @animuson synonymized what exactly? you correctly pointed out that both inline and inline-block are enumerable values to display in css.. so are people going to be looking up answers for their issues with css and inline? and get display:inline-block Q&As? Feb 18, 2015 at 15:05
  • @BrettCaswell I snyonymized inline-block into css. I did nothing with inline.
    – animuson StaffMod
    Feb 18, 2015 at 15:07
  • 3
    Well, I cleaned up all the 96 questions having assembly+inline. Most gained much more than just inline-assembly. And some got completely new tags and other polish. Feb 18, 2015 at 16:43
  • 1
    @Deduplicator excellent work!
    – jonrsharpe
    Feb 18, 2015 at 16:44
  • 1
    I'm not familiar with any language where that tag description is actually accurate :( The tag wiki for inlining appears to be exactly the same, where at least it is more relevant, although the mention of inline keywords is still inaccurate.
    – Ben Voigt
    Feb 18, 2015 at 20:39
  • @BenVoigt, the wiki doesn't make mention to inline keywords.. were you referring to my comment above? I suppose I should correct that as inline specifier, and it's a reserved word. .. or, yeah, keyword en.cppreference.com/w/cpp/keyword Feb 18, 2015 at 20:55
  • @Brett: I'm talking about "the programmer has requested that the compiler insert the complete body of the function in every place that the function is called". That clearly means the C++ inline keyword, but it is wrong. C++ inline specifier (and C too, since I think C99) prevents "symbol multiply defined" errors and has only a very distant connection to the inlining optimization.
    – Ben Voigt
    Feb 18, 2015 at 20:58
  • 1
    No, it really doesn't change the tagging discussion, except that a lot of questions tagged inline should have inlining instead.
    – Ben Voigt
    Feb 18, 2015 at 21:02
  • 2
    @jonrsharpe: Those two have the same description because the description of inline-functions is wrong (at least for C and C++). inlining refers to the optimization, actually inserting the code. inline-functions does not.
    – Ben Voigt
    Feb 18, 2015 at 22:11

0

You must log in to answer this question.

Browse other questions tagged .