Should we find a new name for the create
function?
#9
Replies: 3 comments 1 reply
-
What are the pros of doing things this way vs having the
Given that there will be a single, joint periphery, the smallest viable change enough to suggestively distinguish between the However, I'd, rather, suggest incorporating some sort of organization into the function naming, such that each function clearly references the Stream type it's capable of creating ( Side note: should we, maybe, refer to the |
Beta Was this translation helpful? Give feedback.
-
Given that,
This discussion is no longer required, and I do not see a problem with |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right, this discussion is no longer required |
Beta Was this translation helpful? Give feedback.
-
Context
In v2-core the create functions are called:
createWithDurations
createWithRange
createWithDeltas
createWithMilestones
In the
OpenEnded
conctract atm we have only onecreate
function which is named simply "create".Since additional logic for this contract will need to be added to the periphery, it's likely that we'll share the same periphery between
v2-core
andv2-open-ended
. And we would have only oneBatch
contract.Question: wouldn't it be confusing to have a function simply called
create
there?For context, the functions are called like this:
Atm, I don't have suggestions, will come later here if any good idea comes to mind
Beta Was this translation helpful? Give feedback.
All reactions