Open Goju-Ryu opened 4 days ago
Feel free to propose changes to the String
function API! I wouldn't mind breaking changes if we make it easier to work with them.
Feel free to propose changes to the
String
function API! I wouldn't mind breaking changes if we make it easier to work with them.
Great! The I will open a PR for it soon.
I'm currently developing functions that make heavy use of strings and the
core::strings
module. In this process I have been unable to use the postfix apply operator almost at all due to argument order. I would love if either the order got changed to make the string worked on the last argument or to make a set of postfix apply friendly versions. I believe it would make string heavy code more easily readable and easier to refactor. As an example here is the current version ofstr_replace
and a version using pipes on the assumption that the first argument of all string functions were moved to the end of the argument list: