Hacker News new | past | comments | ask | show | jobs | submit login

In dynamic languages you can do this:

  some_function = function() {
    if (...) return 1;
    if (...) return 2;
  }.log("It's important I log that I'm returning");



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: