Use lazy arguments for when and whenNot#169
Open
neunzehnhundert97 wants to merge 1 commit intoraquo:masterfrom
Open
Use lazy arguments for when and whenNot#169neunzehnhundert97 wants to merge 1 commit intoraquo:masterfrom
neunzehnhundert97 wants to merge 1 commit intoraquo:masterfrom
Conversation
Owner
|
That's a good point, I agree with the reasoning. The PR looks all good to
me, thanks!
This needs a major version bump to release, so I will merge it later, when
I start working on v18 again.
…On Sat., Aug. 24, 2024, 1:23 a.m. neunzehnhundert97, < ***@***.***> wrote:
@neunzehnhundert97 <https://github.com/neunzehnhundert97> requested your
review on: #169 <#169> Use lazy
arguments for when and whenNot as a code owner.
—
Reply to this email directly, view it on GitHub
<#169 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAECBMHROG54SS2GH6XETHLZTA7IVAVCNFSM6AAAAABNBMSNXOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGAYDAMRQGY3TQNY>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
raquo
added a commit
that referenced
this pull request
Jan 16, 2025
- Note: Scala 2 does not support by-name varargs, so in Scala 2 these methods are now limited to at most one argument - This required an alternative implementation vs #169.
raquo
added a commit
that referenced
this pull request
Jan 16, 2025
- Note: Scala 2 does not support by-name varargs, so in Scala 2 these methods are now limited to at most one argument - This required an alternative implementation vs #169.
Owner
|
It turns out that Scala 2 does not support by-name varargs. To keep Laminar behaviour consistent, I split the implementations of So, I will close this PR when I actually merge my alternative implementation. Thanks for bringing up this issue! |
raquo
added a commit
that referenced
this pull request
Oct 27, 2025
- Note: Scala 2 does not support by-name varargs, so in Scala 2 these methods are now limited to at most one argument - This required an alternative implementation vs #169.
raquo
added a commit
that referenced
this pull request
Oct 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, here is a small change/fix.
When using
whenas a shortcut for anif, it violated my assumption that the conditional code would not be executed at all. Instead, it is executed but its result not used. Not a problem if your code is mostly pure, but if there are lurking some side effects, it can give you a hard time finding the problem. I did set the boolean correctly, did I?I suggest to use lazy parameters here, which makes usage of
whenas equivalent toìfas possible.