Char.is_whitespace doesn't recognize form-feed and vertical tab

20 views
Skip to first unread message

Joel Williamson

unread,
Sep 19, 2014, 7:50:57 PM9/19/14
to ocaml...@googlegroups.com
This came as a bit of a surprise to me. It matches the documentation ("' ' or '\t' or '\r' or '\n'") but differs from C, where '\f' and '\v' are whitespace.

Is there any rationale behind this? Neither of these characters occurs very often in the wild, but they do crop up from time to time.

Stephen Weeks

unread,
Sep 21, 2014, 12:53:30 PM9/21/14
to ocaml...@googlegroups.com
No rationale. We'll add them.
> --
> You received this message because you are subscribed to the Google Groups
> "ocaml-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ocaml-core+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Joel Williamson

unread,
Sep 21, 2014, 2:57:32 PM9/21/14
to ocaml...@googlegroups.com

Great. Thanks.

Reply all
Reply to author
Forward
0 new messages