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

String explode #52

Open
Bill-Kunj opened this issue Jun 7, 2022 · 4 comments
Open

String explode #52

Bill-Kunj opened this issue Jun 7, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Bill-Kunj
Copy link

Bill-Kunj commented Jun 7, 2022

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

@Bill-Kunj Bill-Kunj added the enhancement New feature or request label Jun 7, 2022
@tgrospic
Copy link
Collaborator

tgrospic commented Jun 7, 2022

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

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

@Bill-Kunj
Copy link
Author

Bill-Kunj commented Jun 7, 2022

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

@Bill-Kunj Bill-Kunj changed the title String split String explode Jun 7, 2022
@tgrospic
Copy link
Collaborator

tgrospic commented Jun 8, 2022

#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
Copy link
Author

Bill-Kunj commented Jun 13, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants