Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Deprecated Symbol Literals #1424

Merged

Conversation

olabusayoT
Copy link
Contributor

  • replace 'ab with Symbol("ab")

DAFFODIL-2152

- replace 'ab with Symbol("ab")

DAFFODIL-2152
@olabusayoT olabusayoT force-pushed the daf-2152-replace-deprecated-literals branch from 80e2911 to b4b39ef Compare February 7, 2025 21:37
Copy link
Contributor

@mbeckerle mbeckerle left a comment

Choose a reason for hiding this comment

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

+1

@@ -110,7 +110,7 @@ abstract class Expression extends OOLAGHostImpl() with BasicComponent {
res
}

private lazy val compiledDPath_ = LV('compiledDPath) { compiledDPath }
private lazy val compiledDPath_ = LV(Symbol("compiledDPath")) { compiledDPath }
Copy link
Contributor

Choose a reason for hiding this comment

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

The only value of Symbol here I guess is that the strings will be interned. But we only use these strings in documentation.

My actual plan for these LV things was to use Li Haoyi's sourcecode library to obtain the symbol from the name of the lazy val itself, so that this whole argument would just disappear entirely.

However, that's beyond the call of duty for this change set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I create a ticket to track getting that done?

Copy link
Contributor

@jadams-tresys jadams-tresys left a comment

Choose a reason for hiding this comment

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

+1

@olabusayoT olabusayoT merged commit 2a56cc4 into apache:main Feb 10, 2025
12 checks passed
@olabusayoT olabusayoT deleted the daf-2152-replace-deprecated-literals branch February 10, 2025 16:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants