Settings

Theme

An interactive prototype for dynamic dispatching via type conjunctions

jmacc93.github.io

3 points by jmacc93 2 years ago · 1 comment

Reader

jmacc93OP 2 years ago

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

I hope you all like it :)

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's index.html. It pulls CodeMirror from the web, and I think that's it iirc

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection