Our thoughts, knowledge, insights and opinions

Posts tagged as “Macro”

Learning Scala macros with Each

Some say, the best way to learn is by example. In this post we will grab the 'Each' library by ThoughtWorks, explain why it's useful, how it was designed (macros, implicits and other cool Scala stuff) and try to reuse them in our code. The goal is to learn by exploring Each and pick up some Scala ideas along the way.

by Patryk Jażdżewski
June 23, 2016
Tags : Scala Macro

Domain specific types in a play framework project.

In this post we look at two approaches to dealing with domain specific types - unboxed tagged types and case classes and how well they integrate with play framework 2.4 and slick 3.0.

by Dominik Zajkowski
May 26, 2016
Tags : Scala Play framework Slick Macro

def hello = macro world

In this post I'll describe the process of creating a macro transforming a function. As a case study I'll use polynomial differentiation.

by Jakub Kozłowski
February 25, 2016
Tags : Scala Macro