Skip to content

loginManager: Return objects instead of multiple booleans

Florian Müllner requested to merge fmuellner/gnome-shell:fewer-bools into main

Multiple booleans - both in arguments and return values - are almost always problematic API, because people have to memorize (or more likely look up) the meaning of each position.

Instead, return a JS object so each value has a name attached to it.

This came up in !2344 (merged), and has been done on top of that MR.

Merge request reports