rchain / rchip-proposals

Where RChain improvement proposals can be submitted
Apache License 2.0
8 stars 5 forks source link

String explode #52

Open Bill-Kunj opened 2 years ago

Bill-Kunj commented 2 years ago

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 as this.is.my.domain cannot be understood using the delimiter .

@tgrospic Code available at https://github.com/r-publishing/rchain/tree/feature-explode

tgrospic commented 2 years ago

I think we already have similar proposal opened by @jimscarver.

Is there something additional you want to add in your proposal?

Bill-Kunj commented 2 years ago

37 suggests a regex. This is a simple delimiter split.

tgrospic commented 2 years ago

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.

Bill-Kunj commented 2 years ago

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?