David Wong

Results 393 comments of David Wong

btw, why not show the doc information in the suggestion bar on the bottom? This is what [bpython](https://bpython-interpreter.org/) does for example.

btw you don't seem to use OCaml Platform, is this why this doesn't work? My go-to definition stopped working today and I fixed it by manually choosing my switch there:

I'm trying to avoid customizing `.ocamlformat` :) I would argue in favor of making this a default

this indeed sort of looks like ours :o where columns (in our case just 1) can be fixed at setup time, and others can be filled in at runtime.

Thanks for the pointer! Interestingly this does a few things I didn't list or do: * creates the `./cargo/config` as part of the dune action ([this](https://github.com/c-cube/batsat-ocaml/blob/71a22416522767c3a2fc306dcc482603a6fac0b3/Makefile#L22) and [this](https://github.com/c-cube/batsat-ocaml/blob/5fae64e8809d084a0b830d7921b65391a59a8a83/src/dune#L4) and [this](https://github.com/c-cube/batsat-ocaml/blob/5fae64e8809d084a0b830d7921b65391a59a8a83/src/dune#L10))....

OK so I got it working with https://github.com/mimoo/randoml Basically: 1. don't add `Cargo.lock` to your `.gitignore` 2. run `cargo vendor` and follow instructions (which will have you add stuff to...

(btw this seems to _mostly_ work, on some distributions it doesn't: https://github.com/ocaml/opam-repository/pull/19057). I'm wondering if we could create a package like `conf-rust-2018` that either contains a `rust-toolchain` file or that...

which links to more discussion here: https://discuss.ocaml.org/t/cargo-opam-packaging-of-a-rust-ocaml-project/5743

It looks like it might possible like this: ``` impl ocaml::Custom for CamlRandomOracles where F: Field{ ocaml::custom! CamlRandomOracles { name: concat!("CamlRandomOracles"), finalize: CamlRandomOracles::caml_pointer_finalize, } } ``` The problem is that...

btw when would you choose a custom type over creating ocaml types for everything?