6

Spent at least an hour trying to debug this ocaml function, only to realize "end" was a reserved word that my text editor didn't highlight. Classic.

Comments
  • 3
    So annoying. I've had similar, especially when working with legacy MySQL databases with reserved words used as column names. Reserved words are annoying so I started trying to prefix/suffix anything that seems like it can even remotely be a reserved word.
  • 2
    Good idea. Thanks!
  • 0
    That is why I think that a good programming language has no reserved words.

    "let x = y in z"

    is "y |> fun x -> z"

    Why not "x |> .\ y -> z"
Add Comment