Re:Dada, an Experiement by the Creators of Rust
by nu11ptr on Wednesday March 06, 2024 @08:36AM
(#39615796)
Try writing a larger OCaml program and not using interface files. It definitely happens.
[ Parent
| on HN ]
Re:Dada, an Experiement by the Creators of Rust
by BoppreH on Wednesday March 06, 2024 @09:55AM
(#39616601)
I've never used OCaml, so I'm curious to what exactly happens, and if language design can prevent that.
If I download a random project and delete the interface files, will that be enough to see issues, or is it something that happens when writing new code?
Re:Dada, an Experiement by the Creators of Rust
by nu11ptr on Wednesday March 06, 2024 @10:15AM
(#39616820)
If you delete your interface files and then change the type used when calling a function it can cascade through your program and change the type of the function parameter. For this reason, I generally feel function level explicit types are a fair compromise. However, making that convention instead of required (so as to allow fast prototyping) is probably fine.