Re:Magic is often used to describe confusing code
by 0xfaded on Friday March 25, 2016 @09:36PM
(#11364008)
My personal cutoff for magic is if it's determined at compile time, I'm happy.
If someone has proven to the compiler that a piece of code has a certain nonobvious behaviour, I'm usually intrigued.
If my interpreter starts parsing Roman numerals as constants because a gem depends on a gem which depends on gem `roman` (I'm looking at you Ruby), I'm not amused.
Scala's slick package is a fantastic example of advanced language features being used for good.
If someone has proven to the compiler that a piece of code has a certain nonobvious behaviour, I'm usually intrigued.
If my interpreter starts parsing Roman numerals as constants because a gem depends on a gem which depends on gem `roman` (I'm looking at you Ruby), I'm not amused.
Scala's slick package is a fantastic example of advanced language features being used for good.