Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@guizmaii
Copy link
Member

length doesn't need to be a val as it's a constant

`length` doesn't need to be a `val` as it's a constant
implicit val classTag: ClassTag[A] =
Tags.fromValue(a)

override val length =
Copy link
Member Author

Choose a reason for hiding this comment

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

Any reason to prefer having a val here? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be for primitive constants

@plokhotnyuk
Copy link
Contributor

Looks good👍

@guizmaii guizmaii merged commit b8865f5 into series/2.x Jul 31, 2025
19 checks passed
@guizmaii guizmaii deleted the ligth_Singleton branch July 31, 2025 20:03
guizmaii added a commit that referenced this pull request Aug 5, 2025
guizmaii added a commit that referenced this pull request Aug 8, 2025
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.

3 participants