Get the latest tech news

First Class Contexts – Rye Language


“Context is king, I shouted, then ran from the king’s guard.” Although Rye’s contexts are simple structures, we have multiple functions for creating them and it seems even more uses for them. Naming of functions tries to be intent based, but we’re still exploring the area so it can change.

This is a general mechanism for creating contexts with specific parents, but it also behaves sort of like class\object inheritance. This wouldn’t be that exciting, but you have to remember that every active component, also all language constructs like if loop fn ... in Rye are just functions. So your peer or a client isn’t given just endpoints, but a dialect that is composable and can have a full power of a language, or just very limited subset of it.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of rye language

rye language

Photo of class contexts

class contexts