Skip to content

add RippleJS#300

Merged
matschik merged 14 commits intomatschik:mainfrom
tijnjh:ripple
Sep 19, 2025
Merged

add RippleJS#300
matschik merged 14 commits intomatschik:mainfrom
tijnjh:ripple

Conversation

@tijnjh
Copy link
Contributor

@tijnjh tijnjh commented Sep 16, 2025

this pr adds the Ripple framework

closes #298

@Malix-Labs
Copy link

Maybe @trueadm would be interested in reviewing this PR?

@trueadm
Copy link

trueadm commented Sep 16, 2025

We’re about to introduce a few big changes. Let’s hold off merging for now

@Malix-Labs
Copy link

We’re about to introduce a few big changes.

Indeed, see Ripple-TS/ripple#236

@tijnjh tijnjh requested a review from Malix-Labs September 19, 2025 18:39
Comment on lines +18 to +24
if (@light === "red") {
<span>{"STOP"}</span>
} else if (@light === "orange") {
<span>{"SLOW DOWN"}</span>
} else if (@light === "green") {
<span>{"GO"}</span>
}
Copy link

@Malix-Labs Malix-Labs Sep 19, 2025

Choose a reason for hiding this comment

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

Not sure if pattern matching works for Ripple, but it would be a good use-case, especially since light should be an enum

Suggested change
if (@light === "red") {
<span>{"STOP"}</span>
} else if (@light === "orange") {
<span>{"SLOW DOWN"}</span>
} else if (@light === "green") {
<span>{"GO"}</span>
}
switch (@light) {
case "red":
<span>{"STOP"}</span>
case "orange":
<span>{"SLOW DOWN"}</span>
case "green":
<span>{"GO"}</span>
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

switch statements arent implemented as of now, though they are planned :)

Choose a reason for hiding this comment

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

Okay, thanks!
I couldn't find the tracker for it in https://github.com/trueadm/ripple/issues

Copy link

@Malix-Labs Malix-Labs left a comment

Choose a reason for hiding this comment

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

Thanks for the request for review!
However, I'm not sure everything is correct and according to Dominic's best practices and since he is already involved in this PR now I will gladly concede the review

Copy link

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

I'm happy now :)

@matschik matschik merged commit 34048cf into matschik:main Sep 19, 2025
1 check passed
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.

feat: Ripple

4 participants