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

implements function #98

Open
liquidev opened this issue Sep 17, 2022 · 1 comment
Open

implements function #98

liquidev opened this issue Sep 17, 2022 · 1 comment
Labels

Comments

@liquidev
Copy link
Member

This function would simply return whether a type implements the provided trait.

trait Example end

struct MyType impl
  func new() constructor = nil
  as Example end
end

value = MyType.new
assert(implements(value, Example))
@liquidev liquidev moved this to 📦 Backlog in Mica 1.0 Sep 17, 2022
@liquidev liquidev added this to the 0.5.0 milestone Sep 17, 2022
@liquidev liquidev moved this from 📦 Backlog to 🚧 To do in Mica 1.0 Sep 17, 2022
@liquidev
Copy link
Member Author

This can't be implemented right now because foreign functions do not have access to the Environment.

@liquidev liquidev removed this from the 0.5.0 milestone Sep 18, 2022
@liquidev liquidev moved this from 🚧 To do to 📦 Backlog in Mica 1.0 Sep 25, 2022
@liquidev liquidev added the good first issue Good for newcomers label Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📦 Backlog
Development

No branches or pull requests

1 participant