Only for language models

Computer Programming Languages == Splenda

Every time I read about or learn a new programming language, I end up with a distinct feeling of dissatisfaction.  They never quite live up to my expectations.  Maybe I'm picky; maybe what I want is impossible.  I don't know, but while I like most of several of the available languages, none of them satisfy.  Here's what I'm looking for:

Other things I've been thinking about are toolkit utilities for stuff like:

In my fantasy language, you'd be able to write:

mixin Enumerable =
	map f = 
		f first
		while (k = next) != []
			f k

someFunction myArgument =
	newVar = mix Enumerable myArgument
	otherFunction newVar

otherFunction e =
	e.map printf

The syntax isn't that important, in this case; I'm just hacking out ideas.  What's important is that:

  1. the compiler should be able to derive both the inputs and outputs of all of these methods
  2. we can dynamically extend classes, as long as they conform to an API