• 0 Posts
  • 14 Comments
Joined 2 years ago
cake
Cake day: July 17th, 2023

help-circle
  • I couldn’t plug in an adaptor in what seemed to be the correct way, in a Sri Lankan hotel (type M), but it went in ok when I rotated it. As soon as it went in, the power went out in the entire hotel. It was out for the rest of the night, and as I went up the street the next morning, there was a crew working on a transformer a few blocks away. Coincidence?

    Also, at the place I was working, there were 2 other types of power plug than type M. WTF?






  • 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.