I've been adding more "type-awareness" to my optimizer, and one thing I noticed was that it started removing "if (x != null)" checks in some places. When I checked the docs, it turned out it was right; the code was checking the results of toolbox functions that are documented as returning non-null. eg things like ActivityMonitor.getInfo, so it seemed to be a reasonable thing to do.
But then I started wondering how reliable the documentation is. And after a bit of searching on here, I found this bug report, so at least UserProfile.getUserActivityHistory is incorrectly documented. Is this a one-off bug in the documentation, or are there lots of similar issues? Do I need to assume that *all* Toybox functions may return null?
Wondering what the general experience with this is? FlowState _psx_flocsy🤠