So, I am pretty new to Stack Overflow and programming in general.
Someone asked a question how to do something (getting a binary representation of a float in a string) in C++. I said I supposed it might be easier to inline some assembly into your C++ code for that than to do it in C++. I also provided a code example of how to do it. My answer got a couple of downvotes. You can see it here:
Showing binary representation of floating point types in C++
So, when are such answers acceptable and when not? If somebody asks how to do something in CSS, and you say that it's perhaps better to inline some JavaScript, that answer is not so unacceptable, right?
asm()
command would be something external or require more effort (installing some library, learning another language), then it may even treated as an insult. The point here: why would OP has to learn another language? But sinceasm()
is there, it's ok, you can use it to provide an answer. The question is only how good and useful such answer is. Asm inline is an expert technique and unless you are the one, be ready to get criticized for offering such a solution.