You could take advantage of implicit multiplication to define this yourself:
julia> type ShortLiteral end; const S = ShortLiteral(); julia> type LongLiteral end; const L = LongLiteral(); julia> Base.:*(x::Integer, ::ShortLiteral) = Int32(x) julia> Base.:*(x::Integer, ::LongLiteral) = Int64(x) julia> 1234S 1234 julia> 1234L 1234 julia> typeof(1234S) Int32 julia> typeof(1234L) Int64 On Saturday, 22 October 2016 12:23:29 UTC+1, FANG Colin wrote: > > Just wondering if Julia has any integer literal suffix support? > > So we don't have to write Int64(1234) or Int32(1234) in a long expression > containing constants, but use 1234L or 1234S instead. >