Tuesday, August 02, 2005

Stupid keywords

I spent like 20 minutes trying to figure out what I was doing wrong with the syntax of pattern matching in Ocaml, only to discover the problem wasn't with pattern matching at all: I was trying to bind the name val, which is a keyword in ML:
let (key, val) = List.find( ... )
Learning a new language is such a pain. I thought I'd grown out of stupid problems like this. You almost can't blame developers for resisting learning new technologies.

7 comments:

Anonymous said...

Hey Dave,

Usually a decent syntax highlighter helps with that problem. If it turns blue, it's a bad variable name =)

(How come you're learning OCaml?)

Dave Herman said...

That's a good point. In my case, I'm forced to work with a minimal emacs installation over SSH on someone else's Linux box, because I'm playing with alphaCaml and that was the only place I could get it installed. So I don't even have an Ocaml mode.

How come you're learning Ocaml?

I'm working with alphaCaml, because I'm interested in languages that deal with binders.

Anonymous said...

Awesome. Funny enough, I've been interested in the same topic lately. In particular, higher order abstract syntax. alphaCaml is on my list.

Dave Herman said...

All right, you convinced me. I got X-forwarding set up and I have my precious syntax highlighting. So much better.

IT Software Training Institute said...

SAP ABAP Training in Bangalore with 100% placement. We are the Best SAP ABAP Training Institute in Bangalore. Our SAP ABAP courses are taught by working professionals who are experts in.

sap abap training in bangalore

sap abap courses in bangalore

sap abap classes in bangalore

sap abap training institute in bangalore

sap abap course syllabus

best sap abap training

sap abap training centers

IT Software Training Institute said...

Our training institute is the best place to learn foreign languages. Enroll for the best German Language training center in Bangalore. Our Foreign Language School specialists in German language education. Join the best foreign language classes, training institute, coaching centers, tutors, instructors in Bangalore.

German Language Training in Bangalore

German Training Institute in Bangalore

German Institute in Bangalore

German Language Institute

Indian Institute of German & German Language

German Learning

German Language Institute in Bangalore

German Courses

German language course in Bangalore

learn German language in Bangalore

German language basics learning in Bangalore

learn German grammar in Bangalore

German learning centres contact addresses in Bangalore

German grammer tuition phone numbers in Bangalore

reviews of German language learning centres in Bangalore

ratings of German spoken classes in Bangalore

Fouadwhatsappdownload said...

Fullforms
Fullforms
Fullforms
Fullforms
Fullforms
Fullforms
Fullforms
Fullforms
Fullforms