Jacob Weightman

Results 5 issues of Jacob Weightman

I have a protocol where a typealias is defined, and a struct which conforms to that protocol with a property whose type is that typealias. ``` protocol A { typealias...

I wrote this simple test program to throw and "catch" an exception, which works as expected: ```koka fun foo() : exn () throw("error message") fun main() : console () with...

Consider a simple project with a single source file `main.ts`, containing ``` console.log("hello world!"); ``` Compiling this project with `--entryPoint main` and then running with `node bin/bundle.js` gives ``` Error:...

In Node, a common idiom for checking if the current module is the one that was directly invoked is `if (require.main === module) { ... }`. [Here are the docs](https://nodejs.org/api/modules.html#modules_accessing_the_main_module)....