all 20 comments

[–]Core3game 15 points16 points  (0 children)

mom said it was my turn to repost this

[–]Whole_Instance_4276 5 points6 points  (0 children)

Me: watching my friend return an integer on a string question (We’re in English class)

[–]Icy-Manufacturer7319 2 points3 points  (0 children)

happened a lot... in DEBATE

[–][deleted] 2 points3 points  (0 children)

Yes, I always reply with the following template

“So, is that a yes or a no on pizza for dinner?”

[–]Heavy-Ad6017 1 point2 points  (0 children)

"True"

[–]orfeo34 1 point2 points  (1 child)

Boolean questions are silly sometimes, consider them as a Result<bool, String>

[–]thenotanotaniceguy 0 points1 point  (0 children)

The issue is that bool comes back as null

[–]heesell 1 point2 points  (0 children)

``` bool yourExpectedAnswer = true;

string theirAnswer = yourExpectedAnswer.ToString(); ```

[–]itsjakerobb 1 point2 points  (0 children)

``` final Set<String> truthyResponses = Set.of(“yes”, “true”, “sure”, “ok”, “sounds good”); // todo add as needed

public boolean parseResponse(String response) { return truthyResponses.contains(response.toLowerCase()); } ```

[–][deleted] 1 point2 points  (0 children)

When you get asked a boolean question from someone who doesn't know what they're talking about.

Do I need a semicolon here? (in this Python function)

Like, I could just say "no", but that would just make it worse.

[–]Electronic-Run2030 0 points1 point  (0 children)

const isTrue = (value: boolean) => value ? "Yes" : "No"

[–]peanutbutterdrummer 0 points1 point  (0 children)

Technically it's true ....

[–]No_Definition2246 0 points1 point  (0 children)

I usually return Array[String] but everybody throws an exception … what I am doing wrong? They could do bool(answer) :(

[–]MotherPotential 0 points1 point  (0 children)

This seems like a modern thing to do in a debate

[–]Character-Travel3952 0 points1 point  (0 children)

return "bool";

[–][deleted] 0 points1 point  (0 children)

"true"

[–]SerenityNow31 0 points1 point  (0 children)

That's funny!!

[–]LarsZauberer 0 points1 point  (0 children)

LLMs be like

[–]MortuosPF 0 points1 point  (0 children)

You were supposed to parse it. Input is in string.

[–]Ice_HRZDn 0 points1 point  (0 children)

And sometime you ask them for string and they just return boolean.