Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mgaunard
3y ago
0 comments
Share
That is not the idiomatic way to use OCaml, so I wouldn't assume they do that.
0 comments
default
newest
oldest
SonOfLilit
3y ago
At least in similar languages like Haskell, what you do is let the compiler infer types and then press an IDE key combination to write out those inferred types as part of your code so you would get an error if you ever accidentally change the types.
LeonidasXIV
3y ago
Writing `mli` files is pretty much idiomatic or at the very least, not unusual.
mgaunard
OP
3y ago
Only for the public API boundary.
j
/
k
navigate · click thread line to collapse