Comment

Comment by athenot

This leverages Perl's BEGIN block which runs before the main part of the code. I suppose the same fun could be had in other languages:

    if day_of_week is "Friday"
        eval(piece_of_incorrect_code)
    else
        do_sane_operation
parent athenot 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton