Does it make any sense to define a new type name as const?

I want to use a shorthand for a type name. Which of these two options should I go with?

Vec2f = SVector{2, Float32}
const Vec2f = SVector{2, Float32}

If this is in global scope, use const. Otherwise, do not use const because it is not implemented for local scope yet (unless I missed the memo).

4 Likes

[quote=“Henrique_Becker, post:2, topic:44657, full:true”]
apart from the global scope aspect, is fine. in fact, Vector{x} is defined as a constant too

2 Likes