News for hackers. Stuff that matters.
Re:TypeScript Is Surprisingly OK for Compilers by jitl on Friday August 18, 2023 @07:41AM (#37174331)
Go has exceptions: you can use `panic` to throw/catch just fine. The community will bring out the torch and pitchforks because it’s “not idiomatic” but if you’re programming solo or with other pragmatists don’t let it stop you.
Re:TypeScript Is Surprisingly OK for Compilers by madeofpalk on Friday August 18, 2023 @11:41AM (#37177187)
Or just pass pointers because you need optionality, and get null pointer exceptions for free :)
Re:TypeScript Is Surprisingly OK for Compilers by skybrian on Friday August 18, 2023 @01:02PM (#37178627)
Does the community care if it’s not in a public API? If it’s caught within the same library it doesn’t affect anyone else.