--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/31d0bc53-9a16-4262-9533-8121e85ec89b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When I am not certain if a feature will be useful, I let the community step in. In this case, it seems there is not a lot of interest, which is probably a sign that we don't need the feature. In any case, thanks for the proposal Alberto Almagro.Here is also the official place for feature proposals, so we should not redirect to the forum. :)
When I am not certain if a feature will be useful, I let the community step in. In this case, it seems there is not a lot of interest, which is probably a sign that we don't need the feature. In any case, thanks for the proposal Alberto Almagro.Here is also the official place for feature proposals, so we should not redirect to the forum. :)
On Mon, Sep 18, 2017 at 4:33 PM, OvermindDL1 <overm...@gmail.com> wrote:
I'd recommend posting this on the forums, it should generate more discussion there and have more visibility. Overall though Jose will look at it here when he gets time. :-)
On Monday, September 18, 2017 at 1:16:41 AM UTC-6, Alberto Almagro wrote:This has been here almost for a month.... any thoughts guys?
El viernes, 25 de agosto de 2017, 17:55:09 (UTC+2), Alberto Almagro escribió:Hello,I would like to add String.remove/2 with attributes (subject, pattern) to be able to remove patterns from Strings. Now when I want to remove a pattern from a String I have to replace it with an empty string like for example String.replace(string, " ", ""). While this works, in my opinion it doesn't give the code the meaning I want. Calling String.remove(string, " ") would much better reveal my intention of removing a pattern instead of replacing it.If you agree with this, I would like to make and submit a PR adding this feature. If you also want to add some options to it, please tell me the ones you think that may be useful.Thanks in advance for the time you spend reviewing my proposal,Alberto
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/e36abd5e-a4e6-4f60-934b-8b9e4dd7d61b%40googlegroups.com.
On 18 Sep 2017, at 16:33, Alberto Almagro <alberto...@gmail.com> wrote:
Good points, the feature itself won't be complex to add or maintain. I would like Elixir to be a language not only powerful with the machine, but also to be the most friendly as possible with the developer. For me that is the key point: how do we want the language to be in the future?
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/ef5bbc4a-c199-4f93-864c-e4997a55668f%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/5883f963-4bdd-40ac-b3d4-cb9522dbb8cd%40googlegroups.com.
Hi Alberto, please note we won't be accepting this feature as it doesn't offer much on top of replace. Thanks!
On Tue, Oct 17, 2017 at 11:54 PM, Alberto Almagro <alberto...@gmail.com> wrote:
I have implemented a first version of it. What do you think? https://github.com/elixir-lang/elixir/commit/f8ce1c4f066fef26670a9142d347ac6cf99db93aThanks in advance,Alberto
El viernes, 25 de agosto de 2017, 17:55:09 (UTC+2), Alberto Almagro escribió:Hello,I would like to add String.remove/2 with attributes (subject, pattern) to be able to remove patterns from Strings. Now when I want to remove a pattern from a String I have to replace it with an empty string like for example String.replace(string, " ", ""). While this works, in my opinion it doesn't give the code the meaning I want. Calling String.remove(string, " ") would much better reveal my intention of removing a pattern instead of replacing it.If you agree with this, I would like to make and submit a PR adding this feature. If you also want to add some options to it, please tell me the ones you think that may be useful.Thanks in advance for the time you spend reviewing my proposal,Alberto
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.