Conversation
Notices
-
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 25-Jan-2023 04:47:17 JST silverwizard started writing rust in order to be the actual worst - and... I'm having fun
Damnit-
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 25-Jan-2023 06:03:00 JST silverwizard @cm Oh! I'm already feeling horrible by the types.
There's a lot of random types, they want me to unwrap everything and then that shoves out a random type, and I need to coerce it. And I've already had issues were a function gave me a pointer, and I just wanted to give it back to a function, and it seems very wrong. Sure, I understand they want to garbage collect the function - but can't it deal with the fact that that memory still have value? Why do I have to make like 3 different things to pass things around?
Also - declaring with `let` gives me the heebie jeebies every time -
Embed this notice
christian mock (cm@chaos.social)'s status on Wednesday, 25-Jan-2023 06:03:01 JST christian mock @silverwizard Yeah, right? Coming from C and Perl and not feeling constrained by the strictness is unexpected...
silverwizard likes this. -
Embed this notice
christian mock (cm@chaos.social)'s status on Wednesday, 25-Jan-2023 06:08:29 JST christian mock @silverwizard Yes, I'm also struggling with that. Not so much with the types themselves ("Make invalid state unrepresentable" is a good proposition), but with the borrowing and lifetimes and such. I'm fine with unwrap(), because I tended to use the usual "-1" or "undef" as a return indicating failure, and then not checking it.
silverwizard likes this. -
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 25-Jan-2023 06:09:29 JST silverwizard @cm The types seem fine, just a hell of an annoying learning curve, valid.
I want unwrap to be far more intensely returning something I want, or let me specify things more explicitly. -
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 25-Jan-2023 06:34:21 JST silverwizard @cm I mean - I've been using it for like... an hour - so definitely -
Embed this notice
christian mock (cm@chaos.social)'s status on Wednesday, 25-Jan-2023 06:34:22 JST christian mock @silverwizard You might need to get better at the idioms surrounding it, at least I feel I'm not there yet. Like the whole "let ... match" shebang...
silverwizard likes this. -
Embed this notice
christian mock (cm@chaos.social)'s status on Wednesday, 25-Jan-2023 06:38:21 JST christian mock @silverwizard Oh. I'm at it for a few weeks now, some evenings. Definitely a steep learning curve and a reminder of how much, for me, programming is about being familiar with a language and not constantly having to look up basic syntax...
silverwizard likes this.
-
Embed this notice