duplicate icon indicating copy to clipboard operation
duplicate copied to clipboard

Reusable Invocations

Open Emoun opened this issue 1 year ago • 0 comments

Short Description:

Provide a way for reusing duplicate! invocation code for multiple invocations

Motivation:

If we want to reuse the same invocation in multiple calls to different duplicate!s:

some_invocations_code!{
  ReUsableId
  [SomeInvocations] [That are repeated]
}

#[duplicate_item(ReUsableId)]
{...}

#[duplicate_item(ReUsableId)]
{...}


Design

It should be possible to define some code that can be used as duplicate invocation repeatedly. It should also be possible for an invocation to use some code from a different file.

Misc:

Emoun avatar Feb 18 '24 20:02 Emoun