Don't we already have the basic functionality to include namespaces in arc? I'll just use the intersperse example from another thread. (= string (obj join string:intersperse))
(string!join "," (list "a" "b")) -> "a,b"
(let join string!join
(join "," '(1 2 3))) -> "1,2,3"
Of course, a couple of useful macro could be used such as:string/join instead of string!join to have better validation and errors messages. and maybe a using macro which could be useful to load/define names. As for the privacy, a simple convention such as: _private_fn could make the job. ---- So, I know this is pretty naive but I was wondering what was the arguments against that solution? Thanks |