-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add type safety #62
Comments
@felipellrocha we are aware of the fact, that dealing with the That being said, I am not yet sure, what the best way to implement this would be. |
Does the generics now in 1.18beta1 help makes this more tractable? |
Hi @delaneyj |
It seems ok, but i'm not clear about the influence on performance. |
Dealing with interfaces can be quite burdensome. Why not add type safety to the project?
The data matched by a single character matcher type
byte
, and if you are matching multiple items it's always an[]
of whatever type underlies it. And instead of using simple{ }
go blocks, have it with a bit more detail, but details that define types. Something like this:[int, error] { }
that defines we'll be returning anint
, and anerror
The text was updated successfully, but these errors were encountered: