Whole-known-network
<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'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("I'm a red apple")<br /> case Apple():<br /> print("I'm an apple")<br /> case Orange():<br /> print("I'm an orange")<br /> case _:<br /> print(f"Unknown fruit type: {type(fruit_obj)}")<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'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'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>