every time i see people attribute match statements to rust i get annoyed. that shit’s been around fur a very, very long time

@aescling I'm looking this up, the doc page for Rust By Example even says its like C's switch/case lol

[ flashbacks to learning C++ in university lmao ]

Follow

@packetcat depending on your audience that’s not the worst comparison but the kinds of patterns you can write cases fur are much more expurressive than C and you also have the conceptual overhead of implicit binding and destructuring, and you also get the benefit of exhaustiveness checking (though C compilers can sometimes kinda do that these days if you ask them to)

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.