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
Hi,
I'm considering prefixing builtins with std:: prefix, so instead of len and array one would write std::len and std::array. Why? Because there's a lot of keywords used up by builtins so it's quite easy to get a name collision for popular names (len, array, values, etc.). At the same time I want to add using (similar to c++ using namespace) to make converting existing code easier. Alternatively I might prefix functions with context dependent prefix, for instance values would become map::values, sqrt becoming math::sqrt. Since it's quite intrusive I wanted to ask users for opinion.
The text was updated successfully, but these errors were encountered:
Hi,
I'm considering prefixing builtins with
std:
: prefix, so instead oflen
andarray
one would writestd::len
andstd::array
. Why? Because there's a lot of keywords used up by builtins so it's quite easy to get a name collision for popular names (len, array, values, etc.). At the same time I want to addusing
(similar to c++using namespace
) to make converting existing code easier. Alternatively I might prefix functions with context dependent prefix, for instancevalues
would becomemap::values
,sqrt
becomingmath::sqrt
. Since it's quite intrusive I wanted to ask users for opinion.The text was updated successfully, but these errors were encountered: