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: 6036 Reporter:@c-cube Status: closed (set by @xavierleroy on 2013-06-09T09:07:19Z) Resolution: not a bug Priority: normal Severity: feature Category: standard library
Bug description
This commit revert on the current trunk (504e86d) shows that some functions ("split" and "cut_at") are available in the compiler, but not in the standard library.
I often need the "split" function (e.g., to split the content of a small file into a list of lines, or a CLI option into arguments separated by ","). I don't know much about the policy for moving functions to the standard library. What are the reasons behind hidding those?
The text was updated successfully, but these errors were encountered:
The Str library, part of the core distribution, already provides a "split" function that is much more general than the Misc.split function you're talking about. For instance, the latter is unable to split at whitespace, and does arguably the wrong thing with starting or trailing occurrences of the delimiter. Likewise, Str already contains equivalent functionality to "cut_at".
Original bug ID: 6036
Reporter: @c-cube
Status: closed (set by @xavierleroy on 2013-06-09T09:07:19Z)
Resolution: not a bug
Priority: normal
Severity: feature
Category: standard library
Bug description
This commit revert on the current trunk (504e86d) shows that some functions ("split" and "cut_at") are available in the compiler, but not in the standard library.
I often need the "split" function (e.g., to split the content of a small file into a list of lines, or a CLI option into arguments separated by ","). I don't know much about the policy for moving functions to the standard library. What are the reasons behind hidding those?
The text was updated successfully, but these errors were encountered: