Skip to content

Conversation

@0mega28
Copy link
Contributor

@0mega28 0mega28 commented Feb 1, 2025

Implemented Bool, Not, And, Or, Church numerals (ZERO, ONE, TWO), and the successor function (SUCC). However, PRED is not working, possibly due to Java’s type system limitations.

If anyone has insights or suggestions on how to properly implement PRED, help would be appreciated!

@zxdsc
Copy link
Contributor

zxdsc commented Feb 4, 2025

Try to implement this using only interface Bool extends Function<Bool, Bool> type. This actually all you need. You can refer to go implementation

@0mega28
Copy link
Contributor Author

0mega28 commented Feb 8, 2025

Hi @zxdsc, no it doesn't work, somewhere the compiler's type system is not happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants