Greg Cohoon (drmellow) wrote,
Greg Cohoon

  • Mood:
  • Music:

unless keyword

The keyword I miss most when I'm not working in Perl is "unless." I also miss that you can't put the conditional for an "if" block after the statement -- especially when used with "unless" (i.e. "doSomething() unless (flag == true);") -- in languages that are not Perl.

In the past 3 years, I've probably only spent 15 minutes working with Perl. But I end up thinking about it almost every day when I wish I could either reverse the order of the conditional and statement or that I could use "unless."

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded