Skip to main content
jmoreno's user avatar
jmoreno's user avatar
jmoreno's user avatar
jmoreno
  • Member for 14 years, 11 months
  • Last seen more than a month ago
  • Garner, North Carolina, United States
awarded
awarded
revised
Loading…
comment
Why was my question on what features in C# 10 are tied to the runtime closed?
@KarlKnechtel: it’s a potentially complex question, but it doesn’t take a book or website to answer, it doesn’t even take a particularly large paragraph. Answer could be as simple “C#10 does not include any new features that will not run on the 4.8+ runtimes, although some would require a polyfill”. That’s not the answer I gave, but if someone else did, I’d vote for it.
comment
Why was my question on what features in C# 10 are tied to the runtime closed?
It’s not a quirk in the IDE, it’s MS official stance: the language version targets a specific runtime. Targeting other runtimes is undefined behavior. The answer for C#8 does mention features. IMO in an overly wordy manner, but it lists those features that work (compiler), can be made to work (compiler plus additional classes) and those that cannot work (runtime). Still, nice to see someone say something with words and not just a downvote.
comment
Why was my question on what features in C# 10 are tied to the runtime closed?
@Tsyvarev: It’s more like “If I upgrade to version 10, which features can I use”. Useful in making the decision as to whether one wants to use an “unsupported” configuration.
comment
Why was my question on what features in C# 10 are tied to the runtime closed?
@Tsyvarev: The question lists the changes, making it clear exactly what I was referring to, as well as giving a starting point for any answers or partial answers. I repeated it in the answer so that it would be clear what requires a different platform and what just requires the compiler
comment
comment
Why was my question on what features in C# 10 are tied to the runtime closed?
@AlexeiLevenkov: am I to take "Needs focus" as "not a list"? I don't see that elsewhere. I'm not trying to argue that it shouldn't have been close or asking for it to be re-opened, I just want to understand the reason. No comments by anyone saying "I'm voting to close this because X" (in fact doesn't seem to have any close votes), nor a mod or diamond saying the same thing. Just closed.
Loading…
awarded
comment
awarded
awarded
Loading…
Loading…
awarded
comment
What could I have done better so that my question was not closed and I would have got positive response?
@kaya3: That is a exactly the most valid interpretation of version 3 of the the question. The code is working and the OP wants to know if there is a “cleaner” way of doing it. The OP doesn’t know if that cleaner way is a 3rd party library, a standard or a a language construct. The given code could be cleaned up and made more pythonic, without using the re module, but the existence of regular expressions in general is what the OP was fumbling for. There is a disconnect between what was asked and what was wanted.
comment
What could I have done better so that my question was not closed and I would have got positive response?
@cigien: given that the OP has a working solution, I think calling it a “no-effort, how-to” is wrong. The OP clearly has some idea that this type of thing should be short and easy, but doesn’t know enough to give it a name. The question as originally written wasn’t explicitly asking for a library recommendation, but given what was there and how it ended up, I feel that is what was actually being (clumsily) asked for. You call it coercion, I call it eliciting further details.
comment
What could I have done better so that my question was not closed and I would have got positive response?
@cigien: 3rd version says “Following is my solution using iterative method, however I want to know some clean method having fewer lines of code (maybe by using some python library).”, The OP wanted either a recommendation for a library that does it better or recommendation on how to make the code better. It didn’t start out that way, but given that is how it ended up, I’m fine saying that was the actual question. The OP didn’t quite know how to express what was wanted at first.
1
2 3 4 5