Sonny Bonds on Nostr: I've spent a couple of days with Rust and so far I mostly like it. Still on pretty ...
I've spent a couple of days with Rust and so far I mostly like it. Still on pretty basic stuff but I'm past the first stage of not having a clue so I can write actual code without looking every single piece of syntax up.
I really like the "last statement of a block is its value" thing and how it interacts with control flow, but it looks naked and weird as the return value of functions. It'll probably grow on me.
I wish "Some" had a better name, but I don't know what it would be.
#rustlang
Published at
2024-07-31 18:40:04Event JSON
{
"id": "4a5815ed5abc482477780fd301ddb34b843db1b768f1a7ae35247c3395adb079",
"pubkey": "0798e33797ffc7df8014cec0caf1af01a4322689988623d3dc26bd76255e9c7c",
"created_at": 1722451204,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://mastodon.gamedev.place/users/SonnyBonds/statuses/112882562150602554",
"activitypub"
]
],
"content": "I've spent a couple of days with Rust and so far I mostly like it. Still on pretty basic stuff but I'm past the first stage of not having a clue so I can write actual code without looking every single piece of syntax up.\n\nI really like the \"last statement of a block is its value\" thing and how it interacts with control flow, but it looks naked and weird as the return value of functions. It'll probably grow on me.\n\nI wish \"Some\" had a better name, but I don't know what it would be.\n\n#rustlang",
"sig": "b25347880993657bd69cbb5ba2b71edf626af79c1720749c9712c678504dc077bee77bff954adc77f1fc13a8f12b3414572d143cd991af2e03a938b06e3e6963"
}