Y
Hacker News
new
|
ask
|
show
|
jobs
by
kybernetikos
1059 days ago
But you already had to have a null check on on the return value of search if open wasn't previously able to take null, so the behaviour of your code hasn't changed.
1 comments
xmcqdpt2
1058 days ago
Why? You may just have been catching the exception outside both functions. Lots of actual real-life programs, even if it's not the cleanest.
link