Post-Programming for Dummies

February 1, 2008

Trivial * Impossible

Filed under: Uncategorized — ppfd @ 5:32 am

Here’s some code I wish I could write:

vals = []

meta: InputValues -> vals {

bind(a, 1)

bind(b, 2)

bind(c, 3)

}

print vals // [:a, :b, :c]

valsPP = []

meta: ModSymbol -> valsPP {

vals.each do |val|

newSymb = appendSymbol(val, “PP”)

bind(newSymb, eval(val) + 1)

end

}

puts valsPP // [:aPP, :bPP, :cPP]

puts aPP + bPP // 5

Too bad every programming language sucks. If I weren’t at work, this post would be longer.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.