Skip to content

Document new math.sum function design#225

Open
HarmosCreations wants to merge 1 commit into
luau-lang:masterfrom
HarmosCreations:patch-1
Open

Document new math.sum function design#225
HarmosCreations wants to merge 1 commit into
luau-lang:masterfrom
HarmosCreations:patch-1

Conversation

@HarmosCreations

@HarmosCreations HarmosCreations commented Jul 12, 2026

Copy link
Copy Markdown

I would like to request for a new function inside the math library
math.sum a fundemental function who adds numbers together perfect
for unknown vardiac arguments and simplifies other user-defined functions like math.avg.

More info inside the md file.

Request for a new function to math library more info in the md file.
HarmosCreations added a commit to HarmosCreations/rfcs_harmos that referenced this pull request Jul 12, 2026
I would like to request for a new function inside the math library math.avg takes in vardiac of numbers and return the average of them.

This request can be compensated for if [math.sum](luau-lang#225) instead is implemented.

More info inside the md file.
@InfraredGodYT

Copy link
Copy Markdown

No real reason to use this over the + operator.

@HarmosCreations

Copy link
Copy Markdown
Author

No real reason to use this over the + operator.

I had many reasons, but to keep it short: It is a function not an operator and operators act on variables not variadic.

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