We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current state:
traits are PascalCase:
const EvalTrait = trait('evaluate', { Lit({ value }) { return value }, Add({ left, right }) { return left.evaluate() + right.evaluate() } })
Data declarations are inconsistent:
const expData = data({ Lit: { value: {} }, Add: { left: {}, right: {} } }) // camelCase or PascalCase? const peanoData = data((Peano) => ({ Zero: {}, Succ: { pred: Peano } })); const ListData = data((List, T) => ({ Nil: {}, Cons: { head: T, tail: List(T) } }));
When complected the casing can match:
const List = complect(ListData, [...]) const exp = complect(expData, [...]) // PascalCase? const peano = complect(peanoData, [...])
data and trait should be consistent as PascalCase, which means data should be a constructor
This implies complect should also produce a constructor and not an instance.
The text was updated successfully, but these errors were encountered:
mlhaufe
Successfully merging a pull request may close this issue.
Current state:
traits are PascalCase:
Data declarations are inconsistent:
When complected the casing can match:
data and trait should be consistent as PascalCase, which means data should be a constructor
This implies complect should also produce a constructor and not an instance.
The text was updated successfully, but these errors were encountered: