Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What if the assignment to the boolean was only one of the things you wanted to execute based on the result of the if statement?


Even then, I'd rather see:

DEBUG = socket.gethostname() == 'developmentcomp'

if DEBUG then...


It's not




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

Search: