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.
Hi,
I'm considering prefixing builtins with
std:: prefix, so instead oflenandarrayone would writestd::lenandstd::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 instancevalueswould becomemap::values,sqrtbecomingmath::sqrt. Since it's quite intrusive I wanted to ask users for opinion.