[elixir-core:7072] How to recompile erlang modules in Elixir source

2017-04-22 Thread Sam Davies
Hey guys, When working on Elixir itself, we need to recompile after every change. I know how to recompile Elixir modules, it's in the README e.g. `bin/elixirc lib/elixir/lib/kernel.ex`. What if I change one of the erlang files e.g. lib/elixir/src/elixir_module.erl - how do I recompile that? T

Re: [elixir-core:7073] Re: Proposal: Enum.take/1

2017-04-22 Thread Sam Davies
I understand the reasoning. That's why I suggest the name `take` NOT the name `first` to make it clear there is no implied ordering. The use case for this is often while working in IEx. I have a collection of _somethings_ and I want to see what one _something_looks like. I don't care about orde

Re: [elixir-core:7073] How to recompile erlang modules in Elixir source

2017-04-22 Thread José Valim
make erlang On Sat, Apr 22, 2017 at 10:26 Sam Davies wrote: > Hey guys, > > When working on Elixir itself, we need to recompile after every change. I > know how to recompile Elixir modules, it's in the README e.g. `bin/elixirc > lib/elixir/lib/kernel.ex`. > > What if I change one of the erlang f

Re: [elixir-core:7074] Re: Proposal: Enum.take/1

2017-04-22 Thread Amos King
You want to add a default of 1 to Enum.take/2? I personally don't mind that but I think it takes away from the explicit nature of the module. I prefer explicitness if we are only saving a few keystrokes. Amos King Binary Noggin > On Apr 22, 2017, at 04:12, Sam Davies wrote: > > I understand

Re: [elixir-core:7076] Re: Proposal: Enum.take/1

2017-04-22 Thread Myron Marston
I don't think this would improve Elixir. Elixir favors explicitness over implicitness and fewer keystrokes and the only argument for this seems to be convenience. More worrying, `Enum.take/2` returns a list of items. If there was an `Enum.take/1`, I'd expect it to simply default the number of