It wasn't too long ago that /g/tards wanted NO error handling structures because Unix style integer codes are good enough. You showed them a Result enum and they called you a tranny, guaranteed. Now look where we stand.
>computer, create an error, let it rise up to the top level of call stack, and print a call stack as a message >throw new Exception() literally 22th century technology
Anonymous
7/20/2025, 7:45:54 PM No.105969332
try catch my balls tranny
Anonymous
7/20/2025, 8:45:41 PM No.105969889
>grab my balls >grab my balls
Anonymous
7/20/2025, 8:57:43 PM No.105970016
>>105969054 >error codes Kek. Reminds me when normgroids would ask me why windows update fails with some useless HRESULT that is also impenetrable to Google for some weird reason. Hell I can't even understand why you can find the first 500 win32 ones, but never for the other facilities.
An error code without a trace is completely worthless. At least go toddlers have those I guess.
Go makes faggots seethe because it's a language by the white man for the Indian man and it increases Indian software quality. Go is real Brahmins shit and has depreciated Java and Cshart.
>>105970044 I know for a fact you don't. I've seen go programs, I've written go programs. The experience is objectively as bad, if not worse, than exceptions in oojeet languages. At least an exception requires you to actually catch it in a block. Still shit for exhaustiveness.
>>105970132 You're literally retarded if you believe this. Show me you handling something like opening a file and dealing with enoent in both dipshit, then repost.
>>105970239 They aren't even remotely the same. I swear to Christ. Go trannies are insane. One is compiler enforced and discoverable from the type of the error, the other isn't and actually has to O(n) walk the errors and you better hope you picked the write package level error constant. Also now add eperm dipshit. One extra match arm, yours is a disaster. This doesn't even cover monadic handling of errors.
>>105970351 No, you have. It's pathetic how without fail, go toddlers demonstrate a complete lack of understanding of PLT. It's a midwit language and your post and code proves it.
>>105970351 Also guess what dipshit? Your code doesn't even close the file because gotoddlers don't have RAII. Again, it isn't the same. You don't know what you're doing or talking about.
>>105970239 Except Rust has heaps of syntactic sugar to make it convenient, Go has none at all because it's designed to be idiot-proof and idiots don't like abstractions.
Anonymous
7/20/2025, 9:37:43 PM No.105970458
>>105970030 exhaustive pattern matching is the most useless programming invention and the reason why it's exhaustive is simply because it's expression so it must return something. it's byproduct of shitty FP design, nothing more
>>105970458 i love how c# handles it. it just throws exception if there is no matches.
Anonymous
7/20/2025, 9:41:19 PM No.105970491
>>105970458 >being able to ignore errors is actually, le bad. why do you retards even pretend to like a type system if you won't use it? Why do you guys tout a system that's worse than exceptions like it's some breath of fresh air?
Anonymous
7/20/2025, 9:42:52 PM No.105970505
>>105970458 Exhaustive matching is perfectly fine, but even when you don't need it, Rust has if-let and while-let constructs.
>>105970743 It's not the same code nor does it do the same thing. EINVAL
Anonymous
7/20/2025, 10:07:56 PM No.105970793
>>105970016 > HRESULT is bad, I need it to drop into my source level debugger for every error Usually you donโt have the source code for every windows program. I can tell youโre very new to working with computers, but most (if not all) of them are written in C. Look into it.
>>105970743 >gotard complaining about more typing you can't make this shit up also see >>105970505
Anonymous
7/20/2025, 10:13:21 PM No.105970854
>>105970793 What the fuck are you talking about retard? The point is even normie centric shit like Windows Update forwards deep error hresults with zero context to users. Error codes tend to do that. With exceptions, at least you get a backtrace to go with it. Nothing stops you from having a backtrace of codes too.
>usually you don't have the source code Sounds like a wincuck problem and all M$ shit has a symbol server anyway so you a) can't read b) don't even know windows or debugging in windows
>>105970758 That is the sensible thing to do. Asserts are declarative about program state; they are not for doing error handling. When you use an assertion you are telling the compiler a Truth.
>>105970758 Not my problem, my game code does not really do error handling except for cases where the user could do something stupid. I spam asserts everywhere and fix all errors I can find when developing, as that's what asserts are for.
>>105970413 If the lifetime of the data is the same as the application there is no need to manually clean it up, the os will mark all the pages to be reused. In fact this is memory safe as proved by Rust because parts of Rust's stdlib just lets the os clean up shit after it's done making a mess and leaks memory if that shit is expected to life the entire life of the program. Don't believe me? Start valgriding your Rust code.
Anonymous
7/20/2025, 10:28:36 PM No.105971031
>>105970854 My C programs explain what's wrong and which line in the source the error is on, you're simply full of shit.
Anonymous
7/20/2025, 10:31:24 PM No.105971064
>>105971004 I was making a joke, but that's just a harrowing comment...