[elixir-core:7907] Re: [Proposal] Kernel.is_module?/1

2018-02-25 Thread Ben Wilson
Can you elaborate on motivating code patterns? Every instance where I've wanted to determine if a specific module is around has been a compile time question for meta-programming purposes, and the `Code.ensure_loaded?` function has worked great for that. On Sunday, February 25, 2018 at 6:56:25

[elixir-core:7906] Re: [Proposal] Kernel.is_module?/1

2018-02-25 Thread tom
I've found that in practice both `Code.ensure_loaded` and `Code.ensure_compiled?` are both extremely slow in practice. Also it is not very intuitive that this is what you should be reaching for when attempting to check what type something is. The standard pattern that has been established is

Re: [elixir-core:7903] Proposal: Create a function on the Xref task to get a list of callers

2018-02-25 Thread Matt Baker
Ah, perhaps! I will take a look and report back. On Sun, Feb 25, 2018 at 12:23 PM José Valim wrote: > Can you build this from the information returned by calls/2? > -- > > > *José Valimwww.plataformatec.com.br > Founder and Director of R*

Re: [elixir-core:7902] Proposal: Create a function on the Xref task to get a list of callers

2018-02-25 Thread José Valim
Can you build this from the information returned by calls/2? -- *José Valimwww.plataformatec.com.br Founder and Director of R* -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this

[elixir-core:7902] Proposal: Create a function on the Xref task to get a list of callers

2018-02-25 Thread Matt Baker
Hello Elixir friends. We're building "Find References" support in ElixirLS (moving it soon to ElixirSense) so that we can find references in our editor. Right now we run the xref mix task and capture stdout

Re: [elixir-core:7900] Introduce Sum Types

2018-02-25 Thread Louis Pilfold
If I recall correctly this library wraps the values and does not offer compile time checks, which is the inverse of what I'm after. I want unwrapped values and compile time checks :) Cheers, Louis On Sun, 25 Feb 2018, 16:00 OvermindDL1, wrote: > There are at least 2

Re: [elixir-core:7899] Introduce Sum Types

2018-02-25 Thread OvermindDL1
There are at least 2 others that I know of, and I can find those for you too tomorrow if you want them, they have different features and focuses, but the one that immediately comes to mind is: https://github.com/expede/algae Expede on GitHub has a lot of cool and useful little 'core' elixir