Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3721658
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:37:56+00:00 2026-05-19T05:37:56+00:00

some minutes ago Jon Skeet found something. see this this issue and many issues

  • 0

some minutes ago “Jon Skeet” found something. see this

this issue and many issues like this made me to think about something about Undefined Operation or Undefined Result.

should these kind of things that may cause different result in different implementation of libraries like .net or mono results in an Undefined Operation or Undefined Result? maybe throwing an exception or setting a field in it’s struct or class?!
what are cons and pros of having Undefined Operation or Undefined Result?

also look at this
I think some of them mentioned there makes unexpected results which should be handled or make the programmer be aware of them.

I mean some how it is getting a big amount of knowing “X is doing something in this way” and “how X implemented another thing”! is this really help programming and developers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:37:57+00:00Added an answer on May 19, 2026 at 5:37 am

    Do you mean like throwing a NotSupportedException? By tautology, if you define that your operation will throw an exception or return a special value, your behavior was defined. If the specification says that behavior is undefined, then the implementation is free to do anything that the implementer wishes – enforcing that they throw an UndefinedOperation (or similar behavior) means your operation is now defined!

    For the case you linked:

    It’s already specified that comparing a number to NaN returns false ( 1<NaN, 1>NaN, and 1==NaN are all false)? Given that information, when asked “what’s biggest – 1 or NaN?” I would answer “there is no maximum , hence the answer is not a number” (like Math.Max does). But if you phrase it like “given these values – 1,2, NaN – which is the biggest number?” I would have to say “2” – because it’s the biggest number (NaN is not a number!)

    So in this case the issue isn’t that the operation is undefined at all – the problem is that the specification is confusing! I agree that there are confusing issues with NaN (and countless other things), but those are places to argue that the specification needs cleaning or changing. In my opinion, you should petition for a spec change, or possibly a compiler warning – not an exception or special return value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some weeks ago I found a small JS notification library like notify.js , I've
I posted this question about 15 minutes ago and I got some good responses.
A few minutes ago, I commited some files and then pushed them to my
This may be closed, a couple of minutes from now, but I think I
I'm caching some html on a page like this: <% cache do %> <%=
I saw this question a few minutes ago, and decided to take a look
I have a WCF service hosted in IIS 7. It takes some minutes until
I am creating some cookies in my ASP.NET application. These cookies expire 10 minutes
If I have a cron job that run every 10 minutes and for some
I got rejected from CodeCanyon just a few minutes ago and I'm kinda disappointed,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.