You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UTF32String constructor semantics are likely to change in Julia 0.3 (and this identifier was not defined in Julia 0.2); see JuliaLang/julia#7016
However, there is an easy fix (compatible with Julia 0.2) which has the added benefit of making your makeidentifier function type-stable. Just replace
cs = UTF32String(res)
with cs = utf8(res).
This will give you type stability, since you subsequently return in(cs, RESERVED_WORDS) ? "_"*cs : cs, and "_"*cs gives a bytestring even if cs is a UTF32String. If cs is a UTF8String, this will always return a UTF8String.
The text was updated successfully, but these errors were encountered:
The
UTF32String
constructor semantics are likely to change in Julia 0.3 (and this identifier was not defined in Julia 0.2); see JuliaLang/julia#7016However, there is an easy fix (compatible with Julia 0.2) which has the added benefit of making your
makeidentifier
function type-stable. Just replacewith
cs = utf8(res)
.This will give you type stability, since you subsequently return
in(cs, RESERVED_WORDS) ? "_"*cs : cs
, and"_"*cs
gives a bytestring even ifcs
is aUTF32String
. Ifcs
is aUTF8String
, this will always return aUTF8String
.The text was updated successfully, but these errors were encountered: