Suggestion Query not null

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

  1. Savior

    Savior ArbiKool

    Joined:
    Nov 17, 2014
    Messages:
    1,971
    Likes Received:
    671
    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:
    609
    Likes Received:
    241
    No, no nil objects.
     
  3. Defeat3d

    Defeat3d Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,142
    Likes Received:
    486
    No support, potentially makes debugging harder.
     
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,430
    Likes Received:
    1,008
    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 The Developer

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

    Savior ArbiKool

    Joined:
    Nov 17, 2014
    Messages:
    1,971
    Likes Received:
    671
    Alright thanks :)
     

Share This Page

Loading...