Re: [elixir-core:7841] [Proposal] Add GenServer.query and GenServer.handle_query

2018-02-01 Thread Adam Lindberg
There’s also :sys.get_state(pid|name) which returns the state for debugging purposes. Cheers, Adam > On 31. Jan 2018, at 00:39, José Valim wrote: > > > I am not in favour of the proposal but can see some merit in handlers not > modifying the state. For that case we

[elixir-core:7843] Re: Proposal: Option to omit comments from generated mix projects

2018-02-01 Thread Ville Hellman
Hey Onorio, Thanks for pointing it out. Looking at the generated files and the templates I can only see a single doctest that gets created: https://github.com/elixir-lang/elixir/blob/master/lib/mix/lib/mix/tasks/new.ex#L443 To me this feels like a placeholder and for the --nocomments mode I'd

Re: [elixir-core:7843] Re: Proposal: Option to omit comments from generated mix projects

2018-02-01 Thread Onorio Catenacci
I can see that I slightly misunderstood what you're proposing. I thought you were proposing removing comments after generation but you're proposing generating the boilerplate code without comments in the first place. So, never mind--I just misunderstood what you were proposing. On Thu, Feb 1,

[elixir-core:7845] Feature request: Add `Enum.sum_by/2` (like existing `Enum.max_by/2`)

2018-02-01 Thread Alexey Chernenkov
I'm missing `Enum.sum_by/2` func. There are several other `xxx_by` methods (e.g. `sort_by` and `max_by`). -- 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