Sponsored Link •
|
Summary
Having spent some more time trying to explain Cat, a stack based functional language, I came to an interesting realization: virtually everything could be explained in terms of tuples.
Advertisement
|
I had been previously explaining the Cat programming languages as a language where every term is a function which maps a pair of stacks to another pair of stacks. I went on to explain the type inference algorithm in terms of tuples, so that I could relate it to existing type theory. Well I just realized that if I model Cat using only tuples and primitives then everything becomes much easier.
Here's what I mean:Have an opinion? Readers have already posted 15 comments about this weblog entry. Why not add yours?
If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.
Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( www.heron-language.com ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at www.cdiggins.com. |
Sponsored Links
|