News for hackers. Stuff that matters.
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.
Re:Dada, an Experiement by the Creators of Rust by iopq on Wednesday March 06, 2024 @04:32PM (#39621812)
Just require it for public functions. Your own code can be as messy as you want unser the hood