mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#borrowchecker

1 Beitrag1 Beteiligte*r0 Beiträge heute
Hacker News<p>The borrowchecker is what I like the least about Rust</p><p><a href="https://viralinstruction.com/posts/borrowchecker/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">viralinstruction.com/posts/bor</span><span class="invisible">rowchecker/</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Borrowchecker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Borrowchecker</span></a> <a href="https://mastodon.social/tags/Developer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Developer</span></a> <a href="https://mastodon.social/tags/Feedback" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Feedback</span></a> <a href="https://mastodon.social/tags/CodeQuality" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeQuality</span></a></p>
devsimsek<p>So, this is an interesting thing from the Browser Company, dia. It did generate this article based on my blog and believe me, it does sound like me.</p><p>Scary, right?<br><a href="https://universeodon.com/tags/AI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AI</span></a> <a href="https://universeodon.com/tags/ArtificialIntelligence" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ArtificialIntelligence</span></a> <a href="https://universeodon.com/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://universeodon.com/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://universeodon.com/tags/ProgrammingHumor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingHumor</span></a> <a href="https://universeodon.com/tags/DevLife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevLife</span></a> <a href="https://universeodon.com/tags/Productivity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Productivity</span></a> <a href="https://universeodon.com/tags/TechTrends" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechTrends</span></a> <a href="https://universeodon.com/tags/Automation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Automation</span></a> <a href="https://universeodon.com/tags/LearningToCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearningToCode</span></a> <a href="https://universeodon.com/tags/Debugging" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Debugging</span></a> <a href="https://universeodon.com/tags/BorrowChecker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BorrowChecker</span></a> <a href="https://universeodon.com/tags/TechReflections" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechReflections</span></a> <a href="https://universeodon.com/tags/selftaught" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>selftaught</span></a> <br>(even the tags are ai generated!)</p>
Wolf<p>I did, during my previously mentioned workshop, do one thing to offend <a href="https://hachyderm.io/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a>’s <a href="https://hachyderm.io/tags/borrowchecker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>borrowchecker</span></a>. I was implementing an Account struct that had a current balance and a Vec containing a history of balances. This was using <a href="https://hachyderm.io/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> so there are some special types. Because of inheritance, I have self_ instead of self. Here’s the bad thing I said:</p><p>self_.history.push(self_.as_super().balance);</p><p><span class="h-card" translate="no"><a href="https://hachyderm.io/@algo_luca" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>algo_luca</span></a></span> had to explain it to me. He didn’t even need to think about it. He instantly knew what was wrong. Now I am enlightened. I won’t make this particular kind of mistake again. </p><p>Of course the mistake is that I was trying to use a mutable reference (so I could push to history) and anything else at the same time.</p>
Steffen Uhlig<p>Getting the <a href="https://chaos.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://chaos.social/tags/ESP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ESP</span></a> board to work was really simple. Maybe the <a href="https://chaos.social/tags/borrowchecker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>borrowchecker</span></a> and I will become friends, some day?</p>