将bool转为String有没有直接的办法?能想到比较简单的好像就是 boolvalue ? “true” : “false”
const boolvalue = true
function to_red( bare_str::String )::String
return "\033[1;31m" * bare_str * "\033[0m"
end # function to_red
...
println( "The boolvalue is " * to_red( boolvalue? "true" : "false" ) )