Join Slack
Powered by
if a was not val/final then it could fall though a...
# getting-started
n
Nikky
11/06/2018, 8:38 PM
if a was not val/final then it could fall though and return
c
a
Alpesh Vas
11/06/2018, 9:01 PM
How ?
n
Nikky
11/06/2018, 9:26 PM
if it was a parameter then it could be maybe not null.. or if its a var/property it can be modified by another thread
Nikky
11/06/2018, 9:27 PM
the point is if a != null and a != "john" then the return would be "c"
s
SiebelsTim
11/06/2018, 9:35 PM
It's local to the function though
n
Nikky
11/06/2018, 9:36 PM
thats why i stated it as hypothetical..
Open in Slack
Previous
Next