Previously, Xcode's autocomplete would give you the suggestions like addReaction(reaction: String, to: Snowflake, in: Snowflake), which tell you nothing about what variable goes in the to and what goes in the in. Now the suggestions look like addReaction(reaction: String, to: MessageID, in: ChannelID) which makes it obvious that the to should be a message ID and the in should be a channel ID.
Because they are just typealiases, this will not break any existing code that still refers to the variables with the type Snowflake.
Previously, Xcode's autocomplete would give you the suggestions like
addReaction(reaction: String, to: Snowflake, in: Snowflake)
, which tell you nothing about what variable goes in theto
and what goes in thein
. Now the suggestions look likeaddReaction(reaction: String, to: MessageID, in: ChannelID)
which makes it obvious that theto
should be a message ID and thein
should be a channel ID. Because they are just typealiases, this will not break any existing code that still refers to the variables with the typeSnowflake
.Before, in the autocomplete menu:
Before, after selecting an autocompletion:
Now, in the autocomplete menu:
Now, after selecting an autocompletion: