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
- 29 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·4 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 Ask Lemmy@lemmy.world•What's the weirdest premise for a celebrity interview show that was produced?41·8 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 Asklemmy@lemmy.ml•What are some of the rules about the Internet that were taught to you but are now completely ignored?41·8 months agoin the 90s telling (and asking) people those things would have been such a suspicious, sketchy move.
a/s/l?
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.
kablammy@sh.itjust.worksto News@lemmy.world•Special counsel Jack Smith hits back at Trump’s immunity claims3·1 year agoIf they rule for immunity, Biden should just hold Congress hostage until they pass some Constitutional amendments, such as scrapping Electoral College, adding term limits to Supreme Court, etc, then a final one that explicitly disavows any such immunity for the President or any other person, from the moment he releases them forward.
kablammy@sh.itjust.worksto News@lemmy.world•BBC Says It Was Shut Down By Paramount PRs When Questioning Kelsey Grammer On His Support For Donald Trump9·2 years agoNot OP, but where I’m from (NZ), bible bashers are what we call overly religious nuts who have to shoehorn god/bible into everything.
But maybe they could thank the doctor first.
kablammy@sh.itjust.worksto Ask Lemmy@lemmy.world•What companies have made your blacklist?14·2 years agoEasyjet. They sent us an update in their app saying they delayed our flight a few hours due to ill pilot. We were waiting near the gate (nearest cafe) but not quite within view, and no flight boards nearby. They decided not to delay after all but did not send an update to the app, and nothing over loudspeakers. My paranoia got the better of me so i wandered down to the gate around the original time of flight to take a look. When I saw they were boarding after all i called the family down, but we had missed it by a minute or so. They would not let us board. They preferred to delay the flight while they unloaded our baggage. We had to pay for and book with another airline to arrive at our hotel at midnight losing a day of our Greek Island holiday. When we complained to their service desk, they refused to refund us, and said “we DO suggest you always keep up to date by watching the flight boards”. There was a giant sign by their desk that literally said “download our app to keep up to date on your flights”. I will never give those fucks another dollar, and I tell this story to anyone who will listen.
kablammy@sh.itjust.worksto Games@lemmy.world•What were your top favorite video games as a kid?English2·2 years ago- Wings of Fury
- Populous
- F/A18 Interceptor
- Pool of Radiance
- International Karate+
- Jetset Willy (also Blagger, Monty Mole series and other similar games)
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?
kablammy@sh.itjust.worksto Asklemmy@lemmy.ml•What are your thoughts on a user-driven, officially unofficial radio station for Lemmy?13·2 years agoHow often for What’s New Pussycat?
kablammy@sh.itjust.worksto Ask Lemmy@lemmy.world•Why don't public restroom stalls have OPEN/OCCUPIED indicators like porta potties do?1·2 years agoI can only imagine it is to accommodate temperature/humidity changes so that they don’t jam.
You could deal with that while still keeping privacy with a rabeted edge on the door sides.
kablammy@sh.itjust.worksto News@lemmy.world•Actors’ Union Says It Receives ‘Last, Best and Final’ Offer From Studios1·2 years agoThat’s awesome, why would we need the studios then? I can just generate my own movies.
Fuck yeah! But I’m sure there will be some legal fuckery to keep this out of most people’s reach.
kablammy@sh.itjust.worksto Programming@programming.dev•I've lately been making my git commit messages with AI121·2 years agoAnd if one sentence isn’t enough, the commit has too many changes
kablammy@sh.itjust.worksto Asklemmy@lemmy.ml•What is the worst film you have ever seen and why?11·2 years agoRussian Ark. I got free tickets from my company, so took my now wife to go see it as I was into arty films. She still gives me shit about it 20 years later. It’s basically 3 hours of a camera panning around a former Russian Tsar palace with various historical scenes going on in each room.
kablammy@sh.itjust.worksto Ask Lemmy@lemmy.world•What is the name of your cleaning robot?5·2 years agoGrim, short for The Grim Sweeper
Suddenly and all over the place