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: 4186 Reporter:@mmottl Status: closed (set by @garrigue on 2006-12-15T04:53:25Z) Resolution: fixed Priority: normal Severity: minor Version: 3.09.3 Fixed in version: 3.10+dev Category: ~DO NOT USE (was: OCaml general) Monitored by:@mmottl
Bug description
The following is legal:
let f ~x:_ () = ()
But the following will lead to a syntax error:
let f ?x:_ () = ()
Interestingly, the following works:
let f ?x:_foo () = ()
It should be possible to use a plain underscore with optional arguments, too, for consistency.
The text was updated successfully, but these errors were encountered:
Original bug ID: 4186
Reporter: @mmottl
Status: closed (set by @garrigue on 2006-12-15T04:53:25Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.3
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @mmottl
Bug description
The following is legal:
let f ~x:_ () = ()
But the following will lead to a syntax error:
let f ?x:_ () = ()
Interestingly, the following works:
let f ?x:_foo () = ()
It should be possible to use a plain underscore with optional arguments, too, for consistency.
The text was updated successfully, but these errors were encountered: