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

Create a reader for trait declaration and it's members #3

Open
devcdcc opened this issue Aug 22, 2023 · 0 comments
Open

Create a reader for trait declaration and it's members #3

devcdcc opened this issue Aug 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@devcdcc
Copy link
Owner

devcdcc commented Aug 22, 2023

They must complain about generics and members' declarations with or without implementation.

Examples:

trait Monad[U]: // generic type U
	map(U => ?V): Monand[V] // generic type V
	flatMap(U => Monad[?V]): Monand[V]
	flatMap(u: U => Monad[?V]): Monand[V] = 
		u(???) // ??? equals to unimplemented

trait Monad[U]: // generic type U
    map(U => ?V): Monand[V] // generic type V  equals to == map[V](U => V): Monand[V] 
    flatMap(U => Monad[?V]): Monand[V]
    flatMap(u: U => Monad[?V]): Monand[V] =
    u(???) // ??? equals to unimplemented
@devcdcc devcdcc self-assigned this Aug 24, 2023
@devcdcc devcdcc added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant