Checked exceptions require a function to declare the exceptions it can throw. The caller function must then catch and handle the exception, or the exception would bubble up a level, in which case the caller must also include that exception among the exceptions it declares that it can throw. I don’t know if C++ does this, but Java/C# do. It sounds exactly like Rust’s system except with different syntax.
- 0 Posts
- 10 Comments
kablammy@sh.itjust.worksto No Stupid Questions@lemmy.world•Do you feel like you've reached the end of what the world has to offer?2·5 months agoThis post made me think it would be good if there was a community where people could post about “stuff to do”, eg join a local amateur soccer team, here is how leagues work, here is how you find a club to play for, can anyone play, are there min/max ages on teams, are teams split by gender, what is the social scene like, etc etc. Kind of like an AMA but focussed on things people can do if they need an activity/hobby/sport/place-to-meet-new-friends. There’s probably heaps of scenes I don’t even know about, or don’t know how to get involved in.
kablammy@sh.itjust.worksto No Stupid Questions@lemmy.world•We live in an interconnected world. As an American, I’d like to know some ways that I could purchase goods, in solidarity with our brothers and sisters in Canada and Mexico, and still avoid the1·5 months agoThat’s great. Another consequence of these dumb tariffs: extra shipping and the associated greenhouse emissions.
kablammy@sh.itjust.worksto Today I Learned@lemmy.world•TIL Cigarette butts are the most common form of plastic pollutionEnglish2·7 months agoThe metric is also “count”, not volume/mass, so not a very useful metric at all.
kablammy@sh.itjust.worksto Ask Lemmy@lemmy.world•What's the weirdest premise for a celebrity interview show that was produced?41·9 months agoI saw some weird interview show on youtube where they spent the whole time eating ultra spicy chicken wings while interviewing
kablammy@sh.itjust.worksto Technology@lemmy.world•Things the guys who stole my phone have texted me to try to get me to unlock it - GothamistEnglish16·1 year agoVelcro sewn to just inside the top of your pocket, so sticking a hand in your pocket makes a loud noise and you can feel it, for any pickpocket to separate the velcro.
But maybe they could thank the doctor first.
kablammy@sh.itjust.worksto Technology@lemmy.world•Bill Gates says a 3-day work week where 'machines can make all the food and stuff' isn't a bad ideaEnglish4·2 years agoOnce AI and robots can do/make anything they want on demand, they won’t even need money, so don’t need to make money by selling stuff. For sure, they will probably have a tough time transitioning from the idea of making money, but they won’t need to any more. The rest of us could split off our own fairer economy, but they’ll probably have the IP locked up on all the technology so we can’t use it and have to keep working 5 day or more weeks.
kablammy@sh.itjust.worksto Technology@lemmy.world•Microsoft was blindsided by OpenAI's ouster of CEO Sam AltmanEnglish1·2 years agoHow exactly does company A own shares in itself?
Suddenly and all over the place