News for hackers. Stuff that matters.
Re:Fantasy World OCaml (2013) by talex5 on Sunday August 03, 2014 @11:10AM (#8128117)
A style I sometimes see is people not indenting the normal code path of the match. So your example above would be written:

    match user with
    | None -> printf "you need to specify a user\n"; None
    | Some user_id when not (permitted user_id) ->
	printf "this user is not permitted\n"; None
    | Some user_id ->
    // go ahead and return Some object

There are no comments on this comment yet.