19 ms·
"_" getting lots of airtime http://news.ycombinator.com/item?id=2602809 http://news.ycombinator.com/item?id=2602809
by gtani 15y ago
"_" getting lots of airtime
http://news.ycombinator.com/item?id=2602809 http://news.ycombinator.com/item?id=2602809
- gaius 15y agoSo _ in Scala is like $_ in Perl?
- DanielRibeiro 15y agoKinda, but in Scala it is more like syntatic sugar, while in Perl it is a global mutable variable.
- gtani 15y agoHmm, can't remember "$_", but for scala I have a lot of bookmarks http://lambda-the-ultimate.org/node/2808#comment-41717 http://lambda-the-ultimate.org/node/2808#comment-41717 main complaint about syntax: underscore as a wildcard at both the term and type level plus as a way to coerce a method into a first class function. http://okmij.org/ftp/gengo/index.html#Scala-trace http://okmij.org/ftp/gengo/index.html#Scala-trace Montagovian semantics http://www.slideshare.net/normation/scala-dreaded http://www.slideshare.net/normation/scala-dreaded http://blog.yuvimasory.com/2010/06/uses-of-underscore-in-scala.html http://blog.yuvimasory.com/2010/06/uses-of-underscore-in-sca... http://permalink.gmane.org/gmane.comp.lang.scala.user/28031 http://permalink.gmane.org/gmane.comp.lang.scala.user/28031 http://agileskills2.org/blog/2011/05/01/revealing-the-scala-magicians-code-expression/ http://agileskills2.org/blog/2011/05/01/revealing-the-scala-...