3 ms·
The problem is that Ruby's scoping rules aren't consistent. Sometimes it appears lexically scoped, but sometimes it acts dynamically scoped. Sometimes this lea
by KirinDave 18y ago
The problem is that Ruby's scoping rules aren't consistent. Sometimes it appears lexically scoped, but sometimes it acts dynamically scoped.
Sometimes this leads to funny looking code (if you know to avoid it) or truly inscrutable bugs (if you don't).