Hacker News new | ask | show | jobs
by jacobush 2339 days ago
Couldn't you do this with an anonymous function in languages which have those? Which would look like:

    {
        if A && B return println("FizzBuss");
        if A && !B return println("Fizz");
        if !A && B return println("Buzz");
        if !A && !B return println("{}", i);
    }
1 comments

that just seems to being us back to the problem of not wanting to re-evaluate the functions...