HackerTrans
TopNewTrendsCommentsPastAskShowJobs

taurknaut

no profile record

comments

taurknaut
·letztes Jahr·discuss
Yup, that's a failed language.
taurknaut
·letztes Jahr·discuss
Nah, I just tried and it works fine.
taurknaut
·letztes Jahr·discuss
You can also attach them to each others bits and make them fight at the end of the job. Waste of money? Yes. A massive amount of fun for the boys? Absolutely.
taurknaut
·letztes Jahr·discuss
I loved this deep-dive of zig.

> There’s a catch, though. Unlike Rust, ErrorType is global to your whole program, and is nominally typed.

What does "global to your whole program" mean? I'd expect types to be available to the whole compilation unit. I'm also weirded out by the fact that zig has a distinct error type. Why? Why not represent errors as normal records?