Open Bill-Kunj opened 2 years ago
I think we already have similar proposal opened by @jimscarver.
Is there something additional you want to add in your proposal?
37 suggests a regex. This is a simple delimiter split.
Regular expressions are part of @fabcotech proposal:
Maybe @jimscarver can define split
as other functions in his proposal that mimics Scala functions and we can merge these two proposals. Jim can you do that? We don't want to mix normal string functions with regex.
Maybe @jimscarver can define
split
as other functions in his proposal that mimics Scala functions and we can merge these two proposals. Jim can you do that? We don't want to mix normal string functions with regex.
@jimscarver is out-of-action for now. There is already code for the normal string function at https://github.com/r-publishing/rchain/tree/feature-explode. Can we move forward and normalize the RChip(s) once @jimscarver is available?
Motivation
Rholang currently does not support string-level operations. It is desirable to include a simple delimiter-based parsing of string data Rholang is better with string primitives
Motivating Examples
Hierarchical naming cannot be supported using strings @TheoXD A string such as
/my/file/goes/here
cannot be understood using the delimiter/
@fabcotech A string such asthis.is.my.domain
cannot be understood using the delimiter.
@tgrospic Code available at https://github.com/r-publishing/rchain/tree/feature-explode