TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An interactive prototype for dynamic dispatching via type conjunctions

3 点作者 jmacc93超过 1 年前

1 comment

jmacc93超过 1 年前
This is a demonstration prototype I made of a transpiler to Javascript from a variant of Javascript extended with type conjunctions and tag types (I describe both on the page) for a form of dynamic dispatching via implicit guard clauses. It is very rough behind the scenes and is really likely to break if too much is done with it haha. But its really just to demonstrate and illustrate type conjunctions and tag types. The explanation on the page is hopefully worth more than the demonstration, anyway<p>I hope you all like it :)<p>P.S. the demonstration requires javascript but the other stuff on the page I wrote in markdown then used pandoc to turn that into html and manually spliced that into the page&#x27;s index.html. It pulls CodeMirror from the web, and I think that&#x27;s it iirc