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

Overload String ~= #1154

Open
DontHow opened this issue Nov 22, 2023 · 0 comments
Open

Overload String ~= #1154

DontHow opened this issue Nov 22, 2023 · 0 comments

Comments

@DontHow
Copy link

DontHow commented Nov 22, 2023

Overload String ~= is a nice idea.
Unfortunately, Switch use this func for matching.

As an example accroding to #1109 .

import SwifterSwift

switch "10101010" {
case "101":
    print("101") // match this case.
case "1001":
    print("1001")
case "10101010":
    print("10101010")
default:
    break;
}
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

No branches or pull requests

1 participant