Example:

function example(txt; indent=true)
    open(file, "w") do f
        result = somefunc(f, txt; indent=indent)
        return result
    end
end

Just a question: is it in julia valid to return within a do part or does 
this has problems with closing the file?

Thanks




Reply via email to