• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle











  • It would be a mess talking to anyone about time where you do not live.

    Say that you wake up at 06:00, everyone understands. Remove all time zones and now you wake up at 14:53. Anyone not native to your location would have no clue where in the sky the sun is relative to you and what that actually means for your day.

    Would 14:53 for you post removal be compared to 06:00 or 09:00 pre removal? What if oyu are porned post removal and do not have the frame of reference for the old system. How would you go about it then?

    I can see the merit in keeping time zones.


  • If function does not return Result and returns just value directly, you (as a function caller) are guaranteed to always get a value, you can rely on there not being a failure that the function didn’t handle internally.

    The difference being where you handle the error?

    It sounds to me like Java works in kinda the same way. You either use throws Exception and require the caller to handle the exception when it occurs, or you handle it yourself and return whatever makes sense when that happens (or whatever you want to do before you do a return). The main difference being how the error is delivered.

    Java has class similar to Result called Optional.