https://bugzilla.wikimedia.org/show_bug.cgi?id=31901

Brad Jorsch <bjor...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjor...@wikimedia.org

--- Comment #19 from Brad Jorsch <bjor...@wikimedia.org> ---
(In reply to Krinkle from comment #18)
> But I can't imagine explicitly checking and relying on the the absence of
> the structure. Roan/Bryan/Max: Please provide a little more details on that
> use case, this doesn't sound realistic to me and not a breaking change.

In some sort of PHP-ish pseudocode:

 $result = $api->query( array( 'generator' => ... ) );
 if ( !isset( $result['query']['pages'] ) ) {
     // Generator returned no pages, handle that
 } else {
     // Do something with the pages
 }

Yeah, that's a bit dumb. But people do dumb stuff sometimes, particularly when
encouraged by the API representing booleans as present/absent rather than as
booleans.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to