With the introduction of casting in the latest versions of the B4X family, I was wondering if it is now recommended to cast all returns from items such as maps.
for example
I have plenty of if statements where I use
B4X:
if (thismap.getdefault("SomeValue",False)) then
...
end if
is it now recommended to use
B4X:
if (thismap.getdefault("SomeValue",False).As(Boolean)) then
...
end if
If it works you don't need it and it just adds meaningless bloat to your code. B4X weak typing already mostly takes care of it for you. Casting is intended to minimise your code, not maximise it!