Skip to content

A snippet of test code which shows how to use Scala's implicit conversion feature

Notifications You must be signed in to change notification settings

maw/scala-implicits-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

-*- text -*-

A snippet of code I wrote as an exercise to figure out how Scala's
implicit conversions work.  It's a neat concept -- it lets you fake
subclassing types declared as final.  I just have a simple use-case
here, but it's easy to imagine more interesting ones: a safe SQL
string class is one; guaranteed prime integers is another.

To build and run:

$ scalac EmailAddress.scala ImplicitsTest.scala
$ scala ImplicitsTest




About

A snippet of test code which shows how to use Scala's implicit conversion feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages