Louis Pilfold

Results 1867 comments of Louis Pilfold

I've been testing this out and for some reason none of the grammar changes seems to be changing my syntax highlighting. I'm running `npm run compile-watch` and press f5 to...

Closing due to inactively. Please feel free to reopen! Thank you

Hello! Thanks for your suggestions It's not recommended to use reflect, rather wrapper functions are preferred around JavaScript code that needs to do anything complicated. I think the examples I...

Yes I think so! I intend to generate .d.ts files from Gleam code but the other direction could also work.

Gleam isn't a dynamic language, so we should not have any problems there implementing traits/interfaces. Whether this kind of metaprogramming is the right fit for Gleam is not yet clear....

The solution there is to pass around a implicit argument that's a dictionary containing the implementing functions for that data type. This is how OCaml does it (though explicitly), and...

Modules could be a good foundation for runtime representation, though the inability to compose modules means that generic or composable interfaces becomes largely impossible. For us it is a shame...

Oh I see, we're talking more language design than runtime implementation. What would be the advantage of using a module here over records? Records can be constructed and composed at...

That works, but I think we want to also consider generics and interface composability ## Generics Imagine these two interfaces ```rust interface Add { fn add(self, self) -> self }...

For this behaviour and implementations of it what Erlang code would be generated? I don't see how this could be implemented using modules. ```rust pub behaviour Reducer(iter(e), y) { //...