Re:Fear of Macros
by lmm on Thursday June 11, 2015 @05:36AM
(#9698619)
> Meta-programming is great to have, having access to a credit card is way better than not having one if you have the discipline to use it properly. It's essentially why I stick with Ruby rather than move to a statically-typed language, reflection and duck typing are tremendously useful when you don't really know what it is you're building yet but need to execute quickly. You can move at the speed of thought.
I used to have this view (though I used Python rather than Ruby). But since discovering Scala I've found I can move just as quickly, without having to sacrifice safety. When I really need extreme dynamism (which is rarely), typeclasses are a bit more cumbersome than just doing it in a dynamic language, but they can do everything I ever did in Python and while maintaining full safety.
I used to have this view (though I used Python rather than Ruby). But since discovering Scala I've found I can move just as quickly, without having to sacrifice safety. When I really need extreme dynamism (which is rarely), typeclasses are a bit more cumbersome than just doing it in a dynamic language, but they can do everything I ever did in Python and while maintaining full safety.