Resolving Names Once and for All
thunderseethe.dev·1d·
Discuss: r/programming
🦀Rust language programming
Preview
Report Post

Making a Language

This post is part of the making a language series . A series that teaches you how to implement a programming language using Rust.

This post covers name resolution. Desugaring left us with an Ast<String> that we can’t yet feed to type inference. Name resolution will turn that into a Ast<Var> that is ready for type checking by figuring out what the names in our program mean.

Why do we name things? A silly question, perhaps. No one had to tell me to name my pet rock Francis. One look at his sedimentary exterior was all it took to christen him.

Names help us identify with things. This is just as true in computers as it is in rock companions. In programming l…

Similar Posts

Loading similar posts...