Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support local open syntax for empty delimiters M.[], M.() etc. #6635

Closed
vicuna opened this issue Oct 28, 2014 · 3 comments
Closed

Support local open syntax for empty delimiters M.[], M.() etc. #6635

vicuna opened this issue Oct 28, 2014 · 3 comments

Comments

@vicuna
Copy link

@vicuna vicuna commented Oct 28, 2014

Original bug ID: 6635
Reporter: @yallop
Assigned to: @yallop
Status: closed (set by @xavierleroy on 2016-12-07T10:47:31Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.02.3+dev
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Tags: patch, junior_job
Related to: #6054
Monitored by: @gasche @hcarty

Bug description

For uniformity it'd be nice if the local open syntax supported empty delimiters:

String.[| 1; 2 |];;

  • : int array = [|1; 2|]

String.[| 1 |];;

  • : int array = [|1|]

String.[| |];;

Characters 11-13:
String.[| |];;
^^

@vicuna
Copy link
Author

@vicuna vicuna commented Dec 22, 2014

Comment author: @damiendoligez

Indeed.

@vicuna
Copy link
Author

@vicuna vicuna commented Feb 16, 2015

Comment author: @gasche

Note: a patch for this is proposed in
#144

@vicuna
Copy link
Author

@vicuna vicuna commented Apr 12, 2015

Comment author: @gasche

Patch merged in trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant