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

I prefer:

    my_variable or raise 'Hey dude! Where's My Variable Assignment'
or else:

    my_variable.nil? and raise 'Hey dude! Where's My Variable Assignment'
since it puts what's being tested in front like with if/then but is also syntactically light-weight.


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

Search: