DEV Community

Discussion on: Picking up Ruby, as a Python Dev & interview questions

Collapse
 
yechielk profile image
Yechiel Kalmenson

Here's a demonstration of why assigning a variable in an if statement could be dangerous:

Collapse
 
vickilanger profile image
Vicki Langer

I had a feeling that it could be a bad idea. It just didn't seem right. I hadn't thought about it leading the end of our species lmao