[e-lang] Re "Rapid Case Dispatch in Scheme"

Dean Tribble dtribble at gmail.com
Sat Sep 30 12:07:17 CDT 2006


I was wondering about the binary search as well.  Your comment that it would
be coded inline makes perfect sense.

A minor point:  I htink the code snippet you pulled out:


> This can be seen in the code in figure 3, but in a sufficiently
> simple form that I didn't recognize it:
>
> (if (<:fix:fix n 1)
>     (f-other x)
>     (if (<:fix:fix n 2)
>         (f-vowel x)
>         (f-consonant x)))
>
> That is, a binary search with all branches written out explicitly.


is the dispatch on branch number to the associated behavior, not a binary
search among value alternatives.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eros-os.org/pipermail/e-lang/attachments/20060930/3bfef582/attachment.html 


More information about the e-lang mailing list