Browse thread
let int = ?([' ' '\t'] '-') digits+
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Brian Hurt <bhurt@j...> |
| Subject: | Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ |
Robert C Fischer wrote: > How would I write f - 1 to mean "one less than the value of f"? In this proposal, you'd write f - 1, with the space between the - and the 1 being important. That said, the next complaint will be that Ocaml "misinterprets" f -x as ( - ) f x, and not the "obviously correct" f (-x). Brian