The feature in OxCaml that more languages should steal Posted by g0xA52A2A on Saturday June 27, 2026 @02:07PM from the theconsensus.dev dept. https://theconsensus.dev/p/2026/06/27/the-feature-in-oxcaml-more-languages-should-steal.html ( 2 comments | 2 points | on HN )
@_noAllocation func foo() -> Int { return [1,2,3].randomElement()! } fails with "error: Using type 'Int' can cause metadata allocation or locks"
but
@_noAllocation func foo() -> Int { return 1 + 2 + 3 }
compiles fine.