News for hackers. Stuff that matters.
Re:Monkey Patching in Scala by octo_t on Monday October 07, 2013 @02:37PM (#6510263)
(Scoped) Implicits are awesome, it turns out that scope is exactly the solution to the problem with generalised monkey-patching :o

Also props to the author for not using the (horrible) term used in early Scala documentation/papers/books of "pimp-my-library"

Re:Monkey Patching in Scala by lmm on Monday October 07, 2013 @02:45PM (#6510316)
Bah. Programming should be fun; there's a reason the biggest scala web framework is called "play". pimp-my-library is a memorable way to express an important concept. Documentation shouldn't have to be po-faced all the time.
Re:Monkey Patching in Scala by seanmcdirmid on Monday October 07, 2013 @03:39PM (#6510659)
The problem is that pimp has two meanings, the unintended meaning painting a weird picture in my head.
Re:Monkey Patching in Scala by adriaanm on Monday October 07, 2013 @05:13PM (#6511313)
Really? The only image I get is a leopard print chevy with a hottub on a trailer.
Re:Monkey Patching in Scala by triplesec on Monday October 07, 2013 @06:40PM (#6511798)
unfortunately that nomenclature might also lead to exposing a spank the monkey method which might also be suboptimal
Re:Monkey Patching in Scala by robmil on Monday October 07, 2013 @02:30PM (#6510216)
Ruby is gradually adding the ability to monkey patch without polluting the global scope via Refinements:

http://timelessrepo.com/refinements-in-ruby