2
<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@kev" class="u-url mention">@<span>kev</span></a></span> <span class="h-card" translate="no"><a href="https://fosstodon.org/@myTerminal" class="u-url mention">@<span>myTerminal</span></a></span> I miss my old collection and today I grabbed the GA-100-1A2.</p><p>I now fear for my future.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> I just use typer. Good enough.</p>
<p><span class="h-card" translate="no"><a href="https://social.treehouse.systems/@mxshift" class="u-url mention">@<span>mxshift</span></a></span> <span class="h-card" translate="no"><a href="https://ioc.exchange/@azonenberg" class="u-url mention">@<span>azonenberg</span></a></span> no no, i&#39;m thinking of the thing which allows like</p><p>void f(char x[static 0x64]) {}</p>
<p><span class="h-card"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> <span class="h-card"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> What I really like is matching directly object or property types in the case statements. ex:</p><p>```python<br />match fruit_obj:<br /> case Apple(color=Red()):<br /> print(&quot;I&#39;m a red apple&quot;)<br /> case Apple():<br /> print(&quot;I&#39;m an apple&quot;)<br /> case Orange():<br /> print(&quot;I&#39;m an orange&quot;)<br /> case _:<br /> print(f&quot;Unknown fruit type: {type(fruit_obj)}&quot;)<br />```</p><p>P.S. match case statements were introduced in 3.10.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> ugh modern python in my day we justed a dict for control flow</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> Nahh it&#39;ll work</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@helge" class="u-url mention">@<span>helge</span></a></span> or Rust! yeah</p>
<p><span class="h-card" translate="no"><a href="https://tutut.delire.party/@simon" class="u-url mention">@<span>simon</span></a></span> actually no that won&#39;t work because you need lookahead</p>
<p><span class="h-card" translate="no"><a href="https://tutut.delire.party/@simon" class="u-url mention">@<span>simon</span></a></span> ... excellent idea</p>