How to write interfaces in Sophia

I just asked this in the Telegram channel. I think it would be an useful feature to have some sort of enforced entrypoints defined by an interface or behaviour. For my particular use case I was looking for a way for the Sophia compiler to error on missing entrypoints that I forgot to implement based on a “behaviour contract” callbacks. Hope it makes sense.

2 Likes