Latest Tweet
- Downgraded to iPhone OS 3.1.3, upgraded to responsive 3G iPhone. :P 2 weeks ago
- More updates...
Categories
Tags
academia alcohol animals boyfriend cooking databases email forwards family Flickr food friends health Lexington Linux list Mario math movies music news OS X Perl photos PHP politics programming quizzes Rails rants reading Ruby screenshots shopping Sims sports themes tutorials Twilight is ridiculous vehicles video games videos weather Web development work zombies again-
Recent Comments
-
Random Quote
There are no stupid questions, but there are a lot of inquisitive idiots.
— unknown Syndication
All posts RSS feed
how I made my languages professor twitch
Today in programming languages, the professor started going over Lisp. I was surprised to learn that function names are case insensitive in Lisp, so if you declare a function called
incrementAll, you can invoke it by callingINCREMENTALL,incrementall, or any other case variant. I forgot about this because I’m not used to case insensitive function names in a language, so later when my professor typedincrementallon his laptop, I pointed out that the ‘a’ should be capitalized.Him: “Oh, that won’t matter, it’s case insensitive.”
Me: “Oh! …So it’s like Visual Basic.”
That made him cringe a bit, being a language purist and a bit of an open source/Linux zealot to boot. Visual Basic was the only other language I could think of though where there’s any kind of case insensitivity, e.g.
if expr thenis the same asIf expr Thenin VB.