4 ms·
I like the idea, but (and this is a minor niggle) the use of a backslash for namespacing completely breaks my visual parser. I keep expecting it to be an escape
by rcarmo 6y ago
I like the idea, but (and this is a minor niggle) the use of a backslash for namespacing completely breaks my visual parser. I keep expecting it to be an escape (or a Windows path, which I never see even though I am working on a PC most of the time because it was mostly eradicated from the GUI and I work in WSL).
- Zababa 6y agoPHP 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.