Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Switch to leading argument order #1318

Merged
merged 5 commits into from
Oct 26, 2022
Merged

Switch to leading argument order #1318

merged 5 commits into from
Oct 26, 2022

Conversation

mlochbaum
Copy link
Contributor

Changing from |> style to ->. I've also de-named the function and scale arguments in mapY and scaleBy as they're pretty obvious. scaleBy's argument being optional doesn't make much sense and causes a warning if it's put at the end.

@vercel
Copy link

vercel bot commented Oct 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
squiggle-components ✅ Ready (Inspect) Visit Preview Oct 24, 2022 at 4:14PM (UTC)
squiggle-website ✅ Ready (Inspect) Visit Preview Oct 24, 2022 at 4:14PM (UTC)

@mlochbaum
Copy link
Contributor Author

There are still several instances of |> in tests/E/splitContinuousAndDiscrete_test.res. I'm adding some random tests for #1286 and will fix those there to avoid a merge conflict.

Copy link
Collaborator

@berekuk berekuk left a comment

Choose a reason for hiding this comment

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

This is too long to read through :)

I assume that if build and tests are passing then everything is fine. Also agree that de-naming makes sense. (Optional named arguments in Rescript are weird, it forces you to put () at the end).

Happy to see O/O2 and R/R2 being cleaned up!

@berekuk berekuk merged commit bfc4839 into develop Oct 26, 2022
@berekuk berekuk deleted the swap-args branch October 26, 2022 19:01
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.

2 participants