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: 7786 Reporter:@nojb Assigned to:@nojb Status: closed (set by @nojb on 2018-05-25T05:46:09Z) Resolution: won't fix Priority: normal Severity: feature Category: standard library Monitored by:@nojb@hcarty
Bug description
Now that Bigarray is part of the stdlib, I am wondering if we should introduce bigarray literals.
As delimiter the most logical syntax would be {| 1; 2; 3 |}, but that is already taken, so we need an alternative.
Since the bigarray type cannot be deduced from the OCaml type of its elements (e.g. the above bigarray could be of type int8_signed_int or int16_unsigned_int or ...), we also need an optional syntax to specify a concrete bigarray type.
There is also the issue of the empty bigarray: for it, we must always specify the concrete bigarray type since we cannot give it a fully general type ('a, 'b, 'c) Bigarray.Genarray.t.
Opinions?
The text was updated successfully, but these errors were encountered:
Indeed - my comment was only meant to suggest that a final sugared syntax may not be necessary right away since there are internal changes to go along with this.
Original bug ID: 7786
Reporter: @nojb
Assigned to: @nojb
Status: closed (set by @nojb on 2018-05-25T05:46:09Z)
Resolution: won't fix
Priority: normal
Severity: feature
Category: standard library
Monitored by: @nojb @hcarty
Bug description
Now that Bigarray is part of the stdlib, I am wondering if we should introduce bigarray literals.
As delimiter the most logical syntax would be {| 1; 2; 3 |}, but that is already taken, so we need an alternative.
Since the bigarray type cannot be deduced from the OCaml type of its elements (e.g. the above bigarray could be of type int8_signed_int or int16_unsigned_int or ...), we also need an optional syntax to specify a concrete bigarray type.
There is also the issue of the empty bigarray: for it, we must always specify the concrete bigarray type since we cannot give it a fully general type ('a, 'b, 'c) Bigarray.Genarray.t.
Opinions?
The text was updated successfully, but these errors were encountered: