add binary:join/2#427
Conversation
strings:join/2 for binaries!
|
Patch has passed first testings and has been assigned to be reviewed I am a script, I am not human |
|
You should add tests along with your PRs. A question to the OTP team: API-wise isn't it a good idea to have polymorphic functions? |
|
@fenollp : The idea that we've kicked around here since EEP35 has been a string library that operates on io-lists instead of just binaries. Though I think it would be a good idea with an io-list string library, I also think it would be a high complexity cost .. unless we do iolist_to_binary on every input .. which kind of defeat it's purpose I guess. @kittee : See EEP35 bstring:join/2. I don't know the status of EEP35, I don't think it's accepted (it lacks a reference implementation). Edit: spelling |
|
Thanks for your contribution, but we have decided to reject it because we don't think that join/2 fits in the binary module. join/2 belongs in a module with general string manipulation functions such as bstring as suggested in EEP35; the binary module contains more specialized functions that are highly optimized. |
strings:join/2 for binaries!