Git Product home page Git Product logo

Comments (3)

julianpeeters avatar julianpeeters commented on September 26, 2024

In interested in supporting the fixed data type, but I haven't used it
before.

I'm thinking maybe I'd rather keep the number of macros to a minimum,
modifying @avrorecord instead. Or maybe another macro is the cleanest way.

What you suggest is doable. If you wanted to try, I'd start by using
@avrorecord as a model for how to get the argument of the annotation, and
how to pattern match the annotated class def in and output a modified
version complete with SpecificFixed base class.

Let me bone up on fixed, maybe I'll have a solution towards the end of the
week.

Cheers,
Julian
On Apr 14, 2015 12:12 AM, "Dan Di Spaltro" [email protected] wrote:

I am guessing you'd want to create another macro, do some checking to make
sure it has a single field (ByteBuffer or Array[Byte]) and inherit from
SpecificFixed, and add a macro on to the class @FixedSize(num).

Any ideas how to do this? I am having a harder time with this macro stuff
than I thought =(


Reply to this email directly or view it on GitHub
#8.

from avro-scala-macro-annotations.

dispalt avatar dispalt commented on September 26, 2024

I have a version of it working but the code is all mangled. Ill try to post it soon.

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on September 26, 2024

Great!
On Apr 15, 2015 2:33 PM, "Dan Di Spaltro" [email protected] wrote:

I have a version of it working but the code is all mangled. Ill try to
post it soon.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from avro-scala-macro-annotations.

Related Issues (20)

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.