I love #rust but really, the "we don't have function overloading because it's too complicated for the user and our trait system is better" position does feel a bit far fetched at times...
(I happen to know exactly what I had to do in that particular case but I'm pretty positive the "hint" in the error message would not help a novice at all)
=> More informations about this toot | View the thread
One of my least favorite activities in #RustLang refactoring: "adding a field to an enum".
I have a Term
enum of different kinds (think lambda calculus terms). Now I'm adding a mode
field to each term (regardless of kind).
Afaict, I need to:
TermKind
enum Term
into struct Term
and add the field
=> More informations about this toot | View the thread
=> This profile with reblog | Go to artificialmind@fosstodon.org account This content has been proxied by September (3851b).Proxy Information
text/gemini