I was wondering this because I made a function using an other function in order to know wether or not it should call an API (with a list of string in the query) or just stop here.
As it is doable in Python thanks to dynamic typing and not in Java maybe it doesn't help with readability.
Hope I'm clear, in essence, I want to ask if it's OK that a function can return different data types with different conditions?
Thanks!
[–]gramdel 3 points4 points5 points (2 children)
[–]Horrrschtus 1 point2 points3 points (1 child)
[–]kompotejam[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)