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.

Contractual: Design by contract in JavaScript

9 pointsby lebekabout 11 years ago

3 comments

tsenkovabout 11 years ago
I like the idea, but I am not a fan of the compile-step.<p>If there was an alternative implementation of JavaScript with labels used only in this manner (pre-defined meaning, no usage otherwise) they would actually be a good practice.
评论 #7626605 未加载
phpnodeabout 11 years ago
author here, this was my easter hack. You might find the online demo a bit more accessible: <a href="http://codemix.github.io/contractual/try.html" rel="nofollow">http:&#x2F;&#x2F;codemix.github.io&#x2F;contractual&#x2F;try.html</a>
zekusabout 11 years ago
interesting hack