Skip to content

add StructField Metadata support#19

Merged
BenFradet merged 6 commits into
BenFradet:masterfrom
gaborbarna:metadata
Jan 31, 2018
Merged

add StructField Metadata support#19
BenFradet merged 6 commits into
BenFradet:masterfrom
gaborbarna:metadata

Conversation

@gaborbarna

Copy link
Copy Markdown
Contributor

No description provided.

@kmate

kmate commented Jan 29, 2018

Copy link
Copy Markdown

Based on #18, AFAIK.

@dszakallas

Copy link
Copy Markdown

why did you create a separate PR for this?

@kmate

kmate commented Jan 29, 2018

Copy link
Copy Markdown

It is a different feature.

Comment thread core/src/main/scala/ste/encoder.scala Outdated

import scala.collection.generic.IsTraversableOnce

final class MetaData(val metadata: Metadata) extends StaticAnnotation

@kmate kmate Jan 29, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to @Meta just to make usage shorter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@BenFradet BenFradet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really interesting stuff! 👍


import scala.collection.generic.IsTraversableOnce

final class Meta(val metadata: Metadata) extends StaticAnnotation

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the val here?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think yes, because it is not a case class and we need to access this field later to extract the value.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad read this as a case class, merging thanks a lot!

@BenFradet BenFradet merged commit 38a0987 into BenFradet:master Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants