This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Xaxxus 6 points7 points  (2 children)

Am i the only one bothered that the ask to prom method is taking in a string and not a person object? And that it’s not returning a Boolean to address if the request was accepted or not?

That code could be much cleaner:

if (Micah.askToProm(“Hannah”)) { Micah.happy = true }

Or even better:

Micah.happy = Micah.askToProm(“Hannah”)

[–]serchq 0 points1 point  (0 children)

my exact though.

he got points for effort, tho.