TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Create a new language with a monadic parser combinator written in PHP

2 pointsby gealalmost 12 years ago

1 comment

byoung2almost 12 years ago
<i>Readable: no annoying ; or $ to distract you, only the real code</i><p>Without $, how do you distinguish a constant from a variable?<p><i>Concise: use + and - to set static or instance methods, \ for private, | for protected, &#x2F; for public</i><p>This seems more confusing. \ vs &#x2F; does not scream public vs private. Seems like something I&#x27;d have to keep looking up.<p><i>Safe by default: all the calls to echo or print ar wrapped with htmlentities, to prevent XSS flaws</i><p>You should be using a templating system like Smarty, and not echoing or printing HTML output