The Artima Developer Community
Sponsored Link

Java Buzz Forum
Corrupted By Scheme

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Corrupted By Scheme Posted: Jul 20, 2004 7:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Corrupted By Scheme
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

I was warned, but I did not heed the warnings. Scheme has corrupted me. Aside from getting annoyed with some things Java lacks, I have found my way of treating variables has become very different. Two recent happenings pointed this out to me:

  1. While pairing (I was driving) I started to recur through what amounted to a null-terminated linked list (in Java). Pair pointed out that while would be easier. I was confused. He then kindly reminded me that you can reassign values to variables in Java (yes, I know set! exists, but I don't use it ;-)
  2. Chatting with a co-conspiritor working on a library for use in OJB (and hopefully elsewhere) via IM this morning, he pointed out that I could make a couple more variables final. I nodded, smiled. Then it hit me... I could make every single argument, field, and local variable in the entire library final, with one exception -- the counter in the for (int i = 0; i < my_array.length; ++i) array traversal constructs. Cdr'ing down them isn't worth the ugliness it would take in Java, though.

The scary part is that this total lack of side effects in code was completely by accident -- I didn't even know I was doing it until it was pointed out.

The worse part? I have been making enquiries about mod_haskell. I am doomed!

Read: Corrupted By Scheme


Topic: RE: Spam Challenge Previous Topic   Next Topic Topic: New Open Source BPEL Project - More is Better

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use