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.

Copper: A statically-typed, loose syntax programming language

30 pointsby nercht12over 4 years ago

4 comments

throwaway_pdp09over 4 years ago
(Edit: this comes across a bit aggressive, not meant so).<p>What benefits does copper bring over other langs?<p>Also loose is a bad move. Loose semantics proved a mistake (PL1), loose syntax brings nothing to the party. Semicolons were used in pascal because wirth understood parsing, and they are there to help the parser resync after a syntax error is detected.<p>From experience if you make semicolons optional as in sql, it helps not at all, AND they are (said by microsoft to) become mandatory in future releases of TSQL, AND I and at least some other users of SQL want them mandatory.<p>I also don&#x27;t understand why a non-typical syntax is used. Not at all saying it&#x27;s wrong but it seems to differ from other syntactic conventions only to be different rather than better (I may be wrong!). Why &quot;gte(a: 100)&quot;? Syntax matters to a degree, why diverge?
评论 #24672350 未加载
评论 #24671434 未加载
评论 #24671336 未加载
tom_melliorover 4 years ago
I wonder what &quot;loose syntax&quot; is supposed to mean here. No semicolons at the ends of lines? OK. Optional commas between function arguments? Hum. But at the same time this seems to require colons after... what exactly? Variable read accesses in argument lists? Unintuitive and not exactly &quot;loose&quot;.
评论 #24672073 未加载
评论 #24671426 未加载
评论 #24663183 未加载
wool_gatherover 4 years ago
Might have been better to link to the docs (<a href="https:&#x2F;&#x2F;chronologicaldot.github.io&#x2F;CopperLang&#x2F;" rel="nofollow">https:&#x2F;&#x2F;chronologicaldot.github.io&#x2F;CopperLang&#x2F;</a>), where the &quot;simplicity&quot; part of the pitch is made clearer, as well as the inspiration from JS and Lisp.<p>Reading through them, it seems like an interesting language concept&#x2F;experiment.
mdanielover 4 years ago
GitHub doesn&#x27;t recognize this enough to summarize it, and that last paragraph seems weird to me; is this a customized license of one that I might recognize? <a href="https:&#x2F;&#x2F;github.com&#x2F;chronologicaldot&#x2F;CopperLang&#x2F;blob&#x2F;master&#x2F;license.txt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chronologicaldot&#x2F;CopperLang&#x2F;blob&#x2F;master&#x2F;l...</a>
评论 #24662850 未加载