Why does the following code cause a method error on adding type nothing with an Int?
function flipname(nm) i = findfirst(isequal(','), nm) # returns type nothing if finds no occurrence i == nothing ? nm : nm[i+2:length(nm)] * " " * nm[1:i-1] end
Meanwhile, the following code behaves as expected:
n = nothing n == nothing ? println("nothing") : n + 1