XML & Functional modules

Notices and updates
Locked
Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

XML & Functional modules

Post by Jeff »

For those who use my XML module I have completely rewritten it to serialize *much* more accurately.

I also added a 'match-with' function to my functional module that allows matching in the style of erlang and ml, additionally using guards:

Code: Select all

(match-with '(1 2 3)
  (((a ? integer?) (b ? integer?) (c ? integer? (fn (i) (< i 3))))
   (+ a b c)) ; won't get reached because of guard
  (((a ? integer?) (b ? integer?) (c ? integer? (fn (i) (< i 4))))
   (* a b c))) ; this matches because all guards return true
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Locked