Git Product home page Git Product logo

shapeless-macros's Introduction

shapeless-macros

This project is a proof of concept of the application of implicit macros (not yet a part of Scala, but hopefully they will be in Scala 2.11) to shapeless.

Currently this comprises an implicit macro which automagically creates instances of shapeless Isos for arbitrary case classes. This completely eliminates the residual boilerplate currently required in several of shapeless's key applications.

Between now and the 2013 North East Scala Symposium I'll add implicit macros supporting shapeless's type-level natural numbers and sized collections, which I'll be talking about in Philly if I get enough votes!

And that's about it: my current plan is to fold everything of value here into shapeless proper as soon as implicit macros are available in Macro Paradise and shapeless builds cleanly with Scala 2.11.0-SNAPSHOT.

Building

Clone this project and run sbt (I recommend Paul Phillips sbt launcher script): compile and then test to run the example.

Discussion

Please use the shapless mailing list for discussion of this project and applications of implicit macros in shapeless (or elsewhere).

Acknowledgements

Thanks to Eugene Burmako for supporting implicit macros and being so generally helpful. And thanks to Alois Cochard for kicking the tires and sending pull requests so quickly.

shapeless-macros's People

Contributors

aloiscochard avatar milessabin avatar xeno-by avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.