by tommymachine · 7y ago · 0 comments
You can see it all over the place in code people write, posts on Stack Overflow, etc. The Apple Swift book does a poor job explaining the rationale and benefit of using option types.
I wouldn't want to work with someone like that I doubt anyone else would, either.
I suspect that might be a sympton of excessive complexity and parent's example of C++ seems spot on.
However, break from the old habits is hard. I was there moving to f# and the first month or so I try to bend the rules.
Same now with rust. I try to mold it as a OO language, and get SUPER annoyed with how rust is so different. But you embrace algebraic types and pattern matching and suddenly a lot of other hidden problem simple disappear forever.