Skip to content

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

@devcdcc

Description

@devcdcc

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions