2 ms·
PHP already uses the backlash for namespacing [1]. Since the language is built on top of PHP, it makes sense to have namespaces look like PHP namespaces. It als
by Zababa 6y ago
PHP already uses the backlash for namespacing [1]. Since the language is built on top of PHP, it makes sense to have namespaces look like PHP namespaces. It also avoid using a different syntax for importing PHP code [2].
[1]: https://www.php.net/manual/en/language.namespaces.rationale.php https://www.php.net/manual/en/language.namespaces.rationale....
[2]: https://phel-lang.org/documentation/namespaces/ https://phel-lang.org/documentation/namespaces/
- cutler 6y agoDisagree. It breaks the Clojure idiom. Please reconsider.
- Zelphyr 6y agoIsn't the whole point of Phel to provide Clojure-like syntax? in which case, the dot operator should be used for namespaces. If I recall, the backslash for namespacing was the lesser evil even when PHP implemented it at the time.