Skip to content

Fix GString equality checks with String#6330

Merged
bentsherman merged 3 commits intomasterfrom
fix-lazy-gstrings
Aug 21, 2025
Merged

Fix GString equality checks with String#6330
bentsherman merged 3 commits intomasterfrom
fix-lazy-gstrings

Conversation

@bentsherman
Copy link
Member

This PR improves the semantics of GStrings and lazy expressions in the strict syntax.

  • GStrings are coerced into Strings by appending .toString() under the hood, so that equality checks like "${'test'}" == 'test' are correct.

  • Lazy expressions in process inputs/outputs/directives are handled more consistently. Before, only GStrings and property expressions were lazily evaluated. Now, any expression that references a variable is wrapped in a closure.

@netlify
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 6548d3d
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68a7397d3b258f0008205fa9
😎 Deploy Preview https://deploy-preview-6330--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Copy link
Collaborator

@christopher-hakkaart christopher-hakkaart left a comment

Choose a reason for hiding this comment

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

A couple of non-blocking suggestions. Please check meaning is retained.

@bentsherman bentsherman added this to the 25.10 milestone Aug 21, 2025
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman merged commit 01e1888 into master Aug 21, 2025
21 of 23 checks passed
@bentsherman bentsherman deleted the fix-lazy-gstrings branch August 21, 2025 16:03
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.

Cannot Use params in pod directive, such as k8s.pod, process.pod. Cryptic Issue with params assignment in maps keys

2 participants