@cam @amy I didn't expect you to be a Rust programmer...

Now I'm curious: What's up with the exclamation mark? Why println!() and not println()?

@amy @vaporeon_ I’m not I’m a filthy python casual

println is a macro and macros are always followed by !, there are a couple advantages to it being a macro as opposed to a function:
1) a macro can reference its arguments automatically, so that it doesn’t take ownership of them and they don’t get scrapped when the macro goes out of scope
2) it can check format strings to make sure the arguments and brackets all match up

there are others but I forgor

@cam @amy @vaporeon_ using macro purrepurrocessing to add ad-hoc dependent typing is very funny; i love it

@aescling @cam @vaporeon_ Cam and I are in vc together and I was popping off over "purrepurrocessing"

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.