Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

damn i love statically-typed languages

I had been thinking of switching my language-analyzer to use trigrams: basically, tweaking slightly a data structure that's at the core of all of the code, the sort of thing that would give me nightmares when working on (for example) LiveJournal. But all I had to do was (effectively) change type ngram = (int * int) to type ngram = (int * int * int) and step through the errors. As far as I can tell, it worked perfectly the first time.


Elsewhere: reading Knuth's TeXbook. Typesetting is hott.
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 5 comments