41 ms·
in OCaml, the single quote is a valid char for an identifier: let f = ... and let f' = ...
by toolslive 2y ago
in OCaml, the single quote is a valid char for an identifier:
let f = ... and
let f' = ...
- mrweasel 2y agoI did not know that, and I question that choice as well. Why would you use that? It's a little less bad, because you can just have your own style guide that says "Don't do that".
- steezeburger 2y agoIt's common math notation to have f and f prime to represent something derived from f.
- Degorath 2y agoAs an OCaml beginner I've mostly seen it used for inner functions in lieu of calling the inner function `f_impl`.
- deleted 2y ago[deleted]