Suggestion Query not null

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

  1. Savior

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,050
    Likes Received:
    1,188
    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:
    611
    Likes Received:
    245
    No, no nil objects.
     
  3. Defeat3d

    Defeat3d Prime Celestial

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

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,532
    Likes Received:
    1,047
    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 Just another one...

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

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,050
    Likes Received:
    1,188
    Alright thanks :)
     

Share This Page

Loading...