Since the unveiling of Swift, I've noticed a lot of iOS/OS X questions (both new and old) marked with the Objective-C tag receiving answers in Swift.
I've also seen in many cases users commenting on these answers or even downvoting because the question was marked as Objective-C.
My take on this is that an answer in Swift should still be acceptable (as long as the question is not too language dependent) because the APIs and development environment are still pretty much the same, it just means that people will have to take some time to convert the code (which shouldn't take much time anyway if you actually understand the logic behind the code). It also helps future readers who have the same question and want the code in swift for convenience. You can typically find both languages used in the answers anyway on hot/popular questions.
Now questions specifically about the Objective-C or Swift language should obviously be answered in their respective language. But when answering questions in general on iOS/OS X development I think as long as the answer answers the question, it should be acceptable, regardless of the language. It may not be the ideal answer the asker was looking for. But I don't see any harm in having both Objective-c and Swift answers on a question. Perhaps in such cases we should edit the question tag to include both Swift and Objective-C? Or just don't include either when the language is not significant?
This is just my opinion of course. I would like to see what others think of this question because I am still unsure.
Groovy
,Scala
,Python
, orJavaScript
to a question taggedJava
be appropriate just because the JVM can execute those languages as well?C#
and you want to provide aVB.net
answer you do not get to just add theVB.net
language tag unilaterally, that would be a harmful edit.java
not about thejava language
? would a question taggedregex
that was about parsing get ayacc/bison/antlr
answer as a valid answer? No, it would not. Would someone be out of line adding those tags just so they could answer in that context? Yes they would. This is a ridiculous circular argument you are making about implied overly broad semantics. By your skewed logic, every thing can be answered in any language because it is all about programming or algorithms right?Obj-C
then who are you to second guess that they do not expect an answer inObj-C
? If someone asks about doing something inSpring
and adds theScala
language tag then they are expecting an answer inScala
notGroovy
orJava
or whatever. And changing, removing or adding a language tag unilaterally is vandalism. A question about finding if aPoint
lies inside aPolygon
tagged withC
would expect an answer inC
and not inC++
or any other language.