Skip to main content
8 events
when toggle format what by license comment
May 14, 2014 at 14:53 comment added PlasmaHH @arshajii: [cntd] Closing as dup really doesn't mean "this is the exact same question with the exact same details and circumstances" but it really does mean "This is so similar to the question this is marked a duplicate of that the OP should have found that question, realized that this is exactly what he is doing and tried the answer instead". If after then he would have realized "oh, this answer doesn't work" he would have posted that in his question.
May 14, 2014 at 14:52 comment added PlasmaHH @arshajii: Yes it would. Just as the answer to the question "what does the auto keyword in C++ do" changed in 2011. There is always a little bit difference in each questions, so with your arguing, there would never be a duplicate. When left/right on the = sign doesn't matter, its the same question. Otherwise you would need to say that "x is 1, 2 or 3" is a different question than "x is 4, 5 or 6" or than "x is 1, 2, 6 or 3" since tomorrow a feature gets added to python that makes them different. [to be continued]
May 14, 2014 at 14:47 history edited arshajii CC BY-SA 3.0
deleted 57 characters in body
May 14, 2014 at 14:46 comment added arshajii @PlasmaHH Yes, the questions are absolutely so similar that the solutions match, but I am not convinced that they are the same question. I used the switch example to demonstrate that the two questions are not the same from a programmatic standpoint (i.e. their solutions are not necessarily interchangeable). What if tomorrow a switch statement is added to Python that works in the same way as described above? Would that automatically make the questions non-duplicates (assuming for the sake of argument that they are currently duplicates)?
May 14, 2014 at 11:38 comment added PlasmaHH But the question is not about C or C++ or Java, it is about python and afaict the question is so similar that the solution matches. Yes, there may be questions where this is not the case, and then (and only then) it is not a duplicate. When judging "is it asking the same thing" there are multiple ways that lead to a solution. "it has the same answer" is a prerequisite for being a duplicate, but not sufficient on its own. From another pov, "it has a different answer" is on its own is sufficient for not being a duplicate, no matter how similar the question seems.
May 14, 2014 at 11:16 comment added arshajii @slebetman switch case labels must be compile-time constants (at least in Java/C/C++).
May 14, 2014 at 7:09 comment added slebetman That second piece of code is perfectly valid. What makes you think it's incorrect?
May 13, 2014 at 22:48 history answered arshajii CC BY-SA 3.0