Enhance Predfined Methods in Scala

Posted by fratnk on Stack Overflow See other posts from Stack Overflow or by fratnk
Published on 2010-05-04T10:00:01Z Indexed on 2010/05/04 10:18 UTC
Read the original article Hit count: 112

Filed under:
|

Base question:

Why can I write in Scala just:

println(10)

Why don't I need to write:

Console println(10)

Followup question:

How can I introduce a new method "foo" which is everywhere visible and usable like "println"?

© Stack Overflow or respective owner

Related posts about scala

Related posts about metaprogramming