Re:Candle: Torch Replacement in Rust
by mkehrt on Tuesday August 08, 2023 @04:18PM
(#37054912)
This line of reasoning is utterly alien to me. If your types add mental overhead, you’re doing something wrong. You should be able to rely on the typechecker to check invariants for you, decreasing mental overhead. You have to think about types anyway, especially in an untyped language, where you can’t rely on the typechecker.
[ Parent
| on HN ]
Re:Candle: Torch Replacement in Rust
by infamouscow on Tuesday August 08, 2023 @07:47PM
(#37056982)
The leap from thinking about your program with inheritance to thinking about your program with traits is large and cannot be overstated.
It's one of the reasons why Python developers don't like working in Ruby, for example.