Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Remove Precond
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 committed Oct 27, 2023
1 parent 6bf3a78 commit 67eaebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WithSpecializedGenericMacro

<img src="https://github.com/li3zhen1/SpecializedGenericMacros/actions/workflows/swift.yml/badge.svg" alt="swift workflow">

An experimental peer macro expanding generic **struct or class** to a specialized type, so as to avoid dynamic dispatch.

This macro accepts a list of `typealias` syntaxes, with a tolerance of `final` keyword(which is not allowed in real typealiases). It simply put a specialized type alongside your generic definition, by removing the generic parameter, adding a typealias for the removed parameter. It also replaces all recursive references to the original type with the new specialized type.
Expand Down

0 comments on commit 67eaebd

Please sign in to comment.