The Chicago-Area Scala Enthusiasts (CASE) Meetup Group Monthly Meetup
Details
Meeting Topic: Lenses: fields as values
Seth Tisue, from Northwestern University, is our special guest tonight.
A lens represents a readable and “settable” location in a possibly
nested immutable object. (“Settable” is in quotes because we make a new
object rather than mutating the old one.)
Lenses aren’t in the Scala standard library, but two libraries provide
them: Scalaz and Miles Sabin’s Shapeless. I’ll show how you to use the
Shapeless version, and we’ll look at how it’s implemented.
This may interest you if:
...you use immutable objects
...you use nested immutable objects
...you want to abstract over different fields in your immutable objects
...you're interested in functional programming
Note: As always, you must RSVP with a real name (or email it to us separately) so we can give your name to the building security ninjas in order to enter the building. Please do so by noon so we can order the right amount of food. Thanks!
Please send ideas for presentations to the mailing list. We welcome full length presentations and lightning talks, on topics from beginning to advanced Scala and related technologies.
Dean
Programming Scala (http://programmingscala.com).
Chicago Scala (http://meetup.com/chicagoscala).
