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

refactor: prefer typed params for API funcs #463

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

aofei
Copy link
Member

@aofei aofei commented Dec 3, 2024

  • Introduce SpriteName, SpriteCostumeName, SpriteAnimationName, SoundName, BackdropName, WidgetName.
  • Prefer func overloading over using interface{} or variadic params as optional params.

@aofei aofei force-pushed the typed-params branch 4 times, most recently from a1f50a7 to 41deb10 Compare December 4, 2024 08:18
- Introduce `SpriteName`, `SpriteCostumeName`, `SpriteAnimationName`,
  `SoundName`, `BackdropName`, `WidgetName`.
- Prefer func overloading over using `interface{}` or variadic params as
  optional params.

Signed-off-by: Aofei Sheng <[email protected]>
@aofei aofei marked this pull request as ready for review December 4, 2024 08:21
Copy link
Collaborator

@nighca nighca left a comment

Choose a reason for hiding this comment

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

@JiepengTan JiepengTan self-requested a review December 4, 2024 08:41
@nighca nighca merged commit 971e4a0 into goplus:main Dec 4, 2024
4 checks passed
@aofei aofei deleted the typed-params branch December 4, 2024 08:45
JiepengTan added a commit to JiepengTan/spx that referenced this pull request Dec 5, 2024
- Introduce `SpriteName`, `SpriteCostumeName`, `SpriteAnimationName`,
  `SoundName`, `BackdropName`, `WidgetName`.
- Prefer func overloading over using `interface{}` or variadic params as
  optional params.

Signed-off-by: Aofei Sheng <[email protected]>
nighca pushed a commit that referenced this pull request Dec 5, 2024
- Introduce `SpriteName`, `SpriteCostumeName`, `SpriteAnimationName`,
  `SoundName`, `BackdropName`, `WidgetName`.
- Prefer func overloading over using `interface{}` or variadic params as
  optional params.

Signed-off-by: Aofei Sheng <[email protected]>
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.

3 participants