Open
Description
As an example, here's a function composition operator:
let (>>) f g x = f (g x)
Using it from the same file as it is defined always gets the function inlined --
let logPlusTwo = Js.log >> ((+) 2)
function logPlusTwo(param) {
console.log(2 + param | 0);
}
But when moving the operator to something like an Utils
module, the inlining never happens, which makes the output unnecessarily large. Explicitly annotating it with [@inline]
also doesn't seem to do anything.
Is this a limitation with the build system working file-by-file? If so, is there any workaround?
Metadata
Metadata
Assignees
Labels
No labels