You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1902 Reporter: administrator Status: closed Resolution: won't fix Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Aleksey Nogin
Version: 3.07pl2
OS: Red Hat Linux
Submission from: charter-182-203.caltech.edu (131.215.182.203)
The new pa_macro package requires a complete "IFDEF ... THEN ... ELSE ... END"
in expressions. It would be nice if a shorter "IFDEF ... THEN ... END" form
without an explicit "ELSE" was allowed (where the omited "ELSE" branch is
interpreted as a unit epression).
I think it's better to be explicit and to write ELSE () in expressions and
patterns, for at least 3 reasons: 1/ it keeps a symmetry between exprs and
patts, and 2/ a default unit value is arbitrary, and 3/ an explicit ELSE branch
is easy to read even to those not faniliar with pa_macros.
Original bug ID: 1902
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Aleksey Nogin
Version: 3.07pl2
OS: Red Hat Linux
Submission from: charter-182-203.caltech.edu (131.215.182.203)
The new pa_macro package requires a complete "IFDEF ... THEN ... ELSE ... END"
in expressions. It would be nice if a shorter "IFDEF ... THEN ... END" form
without an explicit "ELSE" was allowed (where the omited "ELSE" branch is
interpreted as a unit epression).
A simple patch is at http://nogin.org/patches/ocaml-3.07-macro-noelse.patch
(note the patch is supposed to be applied on top of
http://nogin.org/patches/ocaml-3.07-macro-endif.patch of #1901)
The text was updated successfully, but these errors were encountered: