23

An essential helper function for any project.

Comments
  • 1
    Id be running around with a pitchfork and a torch, starting an inquisition.
  • 8
    lets make it even less efficient. Can't we put a tostring in there and compare to "true" or "false"
  • 0
    @Bona I'm 100% with you on that suggestion. Will do so from now on!
  • 8
    This can actually also be written recursively:

    public static boolean checkIfTrue(boolean varToCheck) {
    return checkIfTrue(varToCheck);
    }
  • 5
    @Lagostra because who needs free space on the stack :D
  • 2
    😐🔫
  • 1
    Improve it by calling it self on return
  • 3
    @Bona
    We could also encrypt the string in base 64 for obvious security reasons.
    We should also add a timestamp and pk-signature.
    After that we might be able to improve the speed by comparing the hash.
  • 0
    @joeygreen, evals?
  • 1
    Yes @dmartin we should use this in evals!
Add Comment