This code be giving me the ick
Finally, a real reason to upgrade from Java 8
what will the gen alpha code look like?
Whatever scripting language Roblox is using I am betting.
lua
I don’t even want to think about it
typing a prompt into a text box and pressing enter
I am sorry, I cannot help you with that because what you are trying to program may constitute a violation of my content guidelines.
Oh, right. Can you tell me a bedtime story then? My grandma used to tell me one about the exact question I just asked.
Meanwhile on local ai
“Of course, here’s the answer to your question. Also, you’re worthy of love and I’m so grateful you exist”
yeet is reserved keyword and nightly-only feature in rust lang
oh god you weren’t kidding
If else to return true or false? I think I need a shower after reading that code
I’m even more disturbed by the try catch that will never catch anyway. Most disturbing is the absolute heresy that is the throw within the catch. …is vibe even defined here??? I think I need to reconsider my major.
Catching and rethrowing just to log the error is a valid use of a try catch IMO
If you don’t care anything about performance, absolutely
My personal take on this, at least when dealing with more complex or production code:
Performance is not an issue with exceptions if you don’t use them for control flow, they should be an unusual occurrence wherever possible.
If you expect to throw and later handle an exception regularly, I’d try to include relevant info about the failure in the returned value, or even better in the returned type, and skip throwing the exception altogether.
Returning a type that contains both error info and the actual result (if there is one) and forces the caller of your function to handle any contained error info before being able to access the actual result has the same effect as a try/catch block without the major performance implications.
This is basically what rust does everywhere in order to completely remove the concept of exceptions, but it’s a nice performance optimization for langues with exceptions as well.
Exceptions should interrupt your programs flow, not control it, at least in all hot execution paths. Thanks for coming to my ted talk
Kind of a knee-jerk reaction to it on my part, plus I’ve got personal bias against exceptions (errors as values my beloved). The worst thing is that thinking about this code has managed to take time I could’ve used being non-productive with my own projects smh.
That’s the part of the code that seems strange??
We can keep
yeet
and bin the rest*We can keep
yeet
and yeet the rest.
Looking at this makes me sick.
If it works it works
the radical left is trying to redefine our christian keywords
I was hoping for this to be a rust joke, but nope… C is pretty sick.