1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suggestion Query not null

Discussion in 'Client & Site Suggestions' started by Savior, Dec 18, 2014.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Is it possible for the current query system not to return null when calling for example nearest?
     
  2. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    616
    Likes Received:
    246
    No, no nil objects.
     
  3. Defeat3d

    Defeat3d Primate

    Joined:
    Oct 30, 2014
    Messages:
    3,017
    Likes Received:
    1,890
    No support, potentially makes debugging harder.
     
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,937
    Likes Received:
    1,266
    Making them return null values was an intentional design decision made by @Cloud. Forces the developer to follow best practices (and in the process learn them) and prevents the whole "sloppy but it works" concept.
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Basically this, returning null forces the developer to do better error handling.
     
  6. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Alright thanks :)
     

Share This Page

Loading...