2 ms·
"The identifiers used for constant values are put in Initialcase. Functions and types are in singleword style, although underscores are occasionally necessary t
by al2o3cr 13y ago
"The identifiers used for constant values are put in Initialcase. Functions and types are in singleword style, although underscores are occasionally necessary to specify additional information within functions, due to the lack of overloading."
Excusemeijustthrewupinmymouthalittle.
- ori_b 13y agoGenerics handle most of the places where you'd care about overloading. You don't need a variant of, eg, parseint for every integer size: generic parseint = {some_str -> magic_algorithm(str) } (Actual parseint code: http://git.eigenstate.org/ori/mc.git/tree/libstd/intparse.myr http://git.eigenstate.org/ori/mc.git/tree/libstd/intparse.my...) And, yes, you can make things generic only in the return type, and have that inferred.