Quenty / Quenty/NevermoreEngine
Add varargs to maid:GiveTask to support adding multiple tasks at once
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 610
- Forks
- 144
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 12
Description
Currently, the procedure to add many items to maid is to do a repeated call to GiveTask, like so:
local a = Instance.new("Part")
local b = Instance.new("Part")
maid:GiveTask(a)
maid:GiveTask(b)
I propose adding varargs support to :GiveTask, so that we can simply do:
local a = Instance.new("Part")
local b = Instance.new("Part")
maid:GiveTask(a,b)
instead, which is a lot cleaner as it fits in a single line.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the maid module's GiveTask implementation and its existing tests, if present. Check how a single task is registered, then verify that passing multiple tasks in one call registers each task with the same behavior as repeated GiveTask calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100