[elixir-core:5899] Proposal for Random related functions

2016-06-03 Thread eksperimental
You can read this proposal formated https://github.com/eksperimental/experimental/blob/random/PROPOSAL.md # Introducing random related functions First I would like to address the need for implementing in Elixir our function for generating random integers: `Integer.random/1` All functions using

Re: [elixir-core:5900] Proposal for Random related functions

2016-06-03 Thread eksperimental
08:18:21 +0700 eksperimental <eksperimen...@autistici.org> wrote: > You can read this proposal formated > https://github.com/eksperimental/experimental/blob/random/PROPOSAL.md > > # Introducing random related functions > > First I would like to address the need for im

[elixir-core:5888] Bug when in string interpolation?

2016-05-31 Thread eksperimental
is 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/

Re: [elixir-core:5895] Bug when in string interpolation?

2016-06-01 Thread eksperimental
ent behavior for nil while Atom.to_string keeps a literal > conversion. > > On Wednesday, June 1, 2016, eksperimental > <eksperimen...@autistici.org> wrote: > > > I came across when writing a macro that created functions after > > atoms. I had the idead

Re: [elixir-core:5963] Proposal for Random related functions

2016-06-23 Thread eksperimental
to be converted to a list to later pick one element. It optimized Enum.at/2 when dealing with ranges. Thank you. On Sat, 4 Jun 2016 08:37:19 +0700 eksperimental <eksperimen...@autistici.org> wrote: > I forgot to mention that Range.at/3 has been implemented. > > *** > ### Range.

Re: [elixir-core:5961] How to change the markdown engine to generate docs in Elixir Project

2016-06-23 Thread eksperimental
ng-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160624045640.0f20bce0.eksperimental%40autistici.org. For

Re: [elixir-core:5964] Proposal: Enum.pad and Enum.pad_zip

2016-06-23 Thread eksperimental
Jose could you please give me an answer on this, as I would like to to finally make it into the Elixir. Thank you On Thu, 5 May 2016 11:56:47 +0700 eksperimental <eksperimen...@autistici.org> wrote: > Jose, > It was earlier suggested that we should have a function like this. > C

Re: [elixir-core:5968] Proposal for Random related functions

2016-06-23 Thread eksperimental
ular, if we implement Enum.random fast enough for ranges, it > would be enough to replace many of the other functions listed, like > Integer.random and Range.random. :) > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R >

Re: [elixir-core:5969] Proposal: Enum.pad and Enum.pad_zip

2016-06-23 Thread eksperimental
v.ptec > Founder and Director of R > > On Fri, Jun 24, 2016 at 12:25 AM, eksperimental > <eksperimen...@autistici.org > > wrote: > > > Jose could you please give me an answer on this, > > as I would like to to finally make it into the Elixir. > > > &

Re: [elixir-core:5971] Proposal for Random related functions

2016-06-23 Thread eksperimental
On Fri, 24 Jun 2016 01:13:53 +0200 José Valim wrote: > > > > Please let me know how should I proceed > > thank you for your feedback > > > > For now let's go with the optimizations for Enum.random / > Enum.take_random. :) > ok. I will submit a PR as soon as

Re: [elixir-core:5692] Accessing typespecs from a module

2016-05-09 Thread eksperimental
gt; > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Mon, May 9, 2016 at 4:43 AM, eksperimental > <eksperimen...@autistici.org> wrote: > > > I'm trying to fix this bug. > > https://github.com/elixir-lang/el

Re: [elixir-core:5706] Can we have this convenience as a function in the File module: read(file, start, length)

2016-05-12 Thread eksperimental
gt; move the cursor when reading bytes. We would actually need to load > >> the file into Elixir. It would probably be more interesting to add > >> a File.position instead of hiding the underlying behaviour. > >> > >> > >> *José Valim* > >> www.plata

Re: [elixir-core:5702] Can we have this convenience as a function in the File module: read(file, start, length)

2016-05-12 Thread eksperimental
cribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160512192534.35e62698.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:5660] Add boolean methods for different unicode character groups (String.alphanumeric?, etc)

2016-05-03 Thread eksperimental
sage 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160504042910.57fd86e0.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6144] Feature Request: @see_also attribute

2016-07-24 Thread eksperimental
rts auto-linking for modules and functions inside > the docstring. See, for example, > http://elixir-lang.org/docs/stable/elixir/Enum.html#filter/2. > > On Tue, Jul 19, 2016 at 1:41 AM, eksperimental > <eksperimen...@autistici.org> wrote: > > > I have been craving fo

[elixir-core:6192] Introducing is_kind/2 and guard-safe operators: is, is_not, is_any, are, are_not, are_any

2016-08-11 Thread eksperimental
of code: def check(letter) when letter is :char, do: true iex> [100, 200] are [:even, {:>=, 100}] true write expressions in a more natural way: iex> term is_not nil as opposed to iex> not is_nil(term) For a list of all supported kinds, see the list: https://gist.github.com/e

Re: [elixir-core:6205] Introducing is_kind/2 and guard-safe operators: is, is_not, is_any, are, are_not, are_any

2016-08-12 Thread eksperimental
wrote: > Thank you Eksperimental for a great and detailed proposal with working > implementation. > > My biggest concern is that the "kinds" are not extensible. We are > replacing something that is extensible (defining functions) with an > atom-tuple based lookup that i

Re: [elixir-core:6137] Proposal: Add Enum.at!/2

2016-07-18 Thread eksperimental
> On Monday, July 18, 2016 at 11:55:08 AM UTC-4, eksperimental wrote: > > > > it doesn't (other than one returns a tuple and another the element > > itself), > > but same thing as Myron Marston mentioned, > > it is useful when used in pipelines. &

[elixir-core:6130] Proposal: Add Enum.at!/2

2016-07-18 Thread eksperimental
sit https://groups.google.com/d/msgid/elixir-lang-core/20160718222830.4f1c21d4.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

[elixir-core:6138] Feature Request: @see_also attribute

2016-07-18 Thread eksperimental
I have been craving for this feature for a long time. I think it will help with a lot with things such as including discoverability of functions or leading people in the right direction with very little effort from the documentation side. A @see_also (it could be named @related, or any other

Re: [elixir-core:6073] Enum.index/0 type not very useful as it is

2016-07-08 Thread eksperimental
Therefor changing the type is backwards incompatible as long as we > don't break any APIs in the Enum module using it. > > On Fri, Jul 8, 2016 at 1:33 AM, eksperimental > <eksperimen...@autistici.org> wrote: > > > sorry for the latish reply. > > > > I mean

Re: [elixir-core:6068] Enum.index/0 type not very useful as it is

2016-07-07 Thread eksperimental
atible change if no APIs change. It also depends on if the > > type is used as arguments to functions or as return values. > > Accepting more values in arguments is backwards compatible, but > > returning more types of values is not. > > > > The solution might

[elixir-core:6019] Enum.index/0 type not very useful as it is

2016-07-04 Thread eksperimental
-lang-core/20160704233754.6acc2ca5.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6173] Re: Proposal: guard-safe modulo function `mod(a, n)`

2016-08-08 Thread eksperimental
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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160808212901.1360e245.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

[elixir-core:6844] Proposal: Use EditorConfig in the Elixir Project

2017-02-02 Thread eksperimental
Hi everyone, I would like to propose to include a .editorconfig file in the Elixir project. This is the file I have been using during the past year, and I'm very pleased with it, as it has worked flawlessly so far. https://git.io/elixir-editorconfig For those who never heard of it, Editor Config

[elixir-core:6915] Congratulations for the 12,345 commits!

2017-02-21 Thread eksperimental
to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170221193739.00236002.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6920] Proposal: add new tag to functions and modules: @available_since

2017-02-21 Thread eksperimental
he finds some time. :) > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Tue, Feb 21, 2017 at 3:46 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > I would like to read at the documentation, and be a

[elixir-core:6916] Questions about introduction of List.starts_with?/2

2017-02-21 Thread eksperimental
Hi, List.starts_with?/2 have recently been introduced https://github.com/elixir-lang/elixir/pull/5789 I was working on improving the specs and the code, and I have realized there are a few issues I would to work on. Initially would like to to know whether we should support improper lists, that

Re: [elixir-core:6931] Questions about introduction of List.starts_with?/2

2017-02-21 Thread eksperimental
m.br > Skype: jv.ptec > Founder and Director of R > > On Tue, Feb 21, 2017 at 3:38 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > Hi, List.starts_with?/2 have recently been introduced > > https://github.com/elixir-lang/elixir/pull/5789 > >

Re: [elixir-core:6932] Questions about introduction of List.starts_with?/2

2017-02-21 Thread eksperimental
contains? > similar to the String > module. > > Michał. > > On 21 Feb 2017, 15:39 +0100, eksperimental <eksperimen...@autistici.org>, > wrote: > > Hi, List.starts_with?/2 have recently been introduced > > https://github.com/elixir-lang/elixir/pull/5

[elixir-core:6933] Deprecation table

2017-02-21 Thread eksperimental
e+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170222090523.767b36c1.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6939] Questions about introduction of List.starts_with?/2

2017-02-22 Thread eksperimental
.br > Skype: jv.ptec > Founder and Director of R > > On Tue, Feb 21, 2017 at 7:03 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > Sorry José, I was wrong when i wrote > > > If we support improper lists, prefix could be any term, not just a list. > >

Re: [elixir-core:6938] Deprecation table

2017-02-22 Thread eksperimental
y there: > https://github.com/elixir-lang/elixir/blob/master/RELEASE.md#deprecation-policy > > Thank you for looking into this! > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Wed, Feb 22, 2017 at 3:05 AM, e

[elixir-core:6917] Proposal: add new tag to functions and modules: @available_since

2017-02-21 Thread eksperimental
"elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170221214654.0b09ed86.eksperimental%40aut

Re: [elixir-core:6316] modules that are required automatically

2016-09-14 Thread eksperimental
required, only macros :) > > > > Cheers, > > Louis > > > > On 13 September 2016 at 13:54, eksperimental > > <eksperimen...@autistici.org> wrote: > >> Thank you José for your answer, > >> so why is so I don't need to require IO and Enum? > >

Re: [elixir-core:6363] [Feature Suggestion] Wrap :rand.seed with Elixir

2016-09-21 Thread eksperimental
google.com/d/msgid/elixir-lang-core/577910ae-2a52-49f4-9e77-670639106a3c%40googlegroups.com?utm_medium=email_source=footer> > > . > > For more options, visit https://groups.google.com/d/optout. > > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160922023904.48d387a7.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6380] Re: Deprecate 'single quotes for char lists'

2016-09-23 Thread eksperimental
gt; > Thoughts? > > > > *José Valim* > > www.plataformatec.com.br > > Skype: jv.ptec > > 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 group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20160923210603.67c79cf8.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6481] add record/2 to Typespecs

2016-10-12 Thread eksperimental
ar Elixir macro and not a typespec construct. > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Wed, Oct 12, 2016 at 7:46 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > Hi, > > I'm

[elixir-core:6479] add record/2 to Typespecs

2016-10-12 Thread eksperimental
e.com/d/msgid/elixir-lang-core/20161013004644.74d672f9.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6733] Do Elixir typespecs allow multiple clauses like Erlang's do?

2016-12-11 Thread eksperimental
isit > > https://groups.google.com/d/msgid/elixir-lang-core/6bf79af0-6f26-42f7-83e6-35c7f0b7c37f%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20161212040836.157f25b6.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:6765] [Proposal] Range.contains?

2016-12-20 Thread eksperimental
. Initially, I based my work in functions written by "jdl" https://github.com/mykewould/crutches/blob/ddf5535d66601f9630bee1807ef38cb57f52b9b4/lib/crutches/range.ex You can have a look at the module and tests: https://github.com/eksperimental/elixir/blob/range/lib/elixir/lib/rang

Re: [elixir-core:7063] Cleaning out Elixir's .gitignore file and improve clarity

2017-04-16 Thread eksperimental
t; www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Thu, Apr 13, 2017 at 4:55 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > I'm working on improving the Makefile of Elixir, and I'm going through > > what's being ignored

[elixir-core:7060] Cleaning out Elixir's .gitignore file and improve clarity

2017-04-13 Thread eksperimental
cause 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir

Re: [elixir-core:7168] Possible bug in doctests

2017-05-29 Thread eksperimental
I will submit a PR then On Mon, 29 May 2017 06:34:20 + José Valim <jose.va...@plataformatec.com.br> wrote: > Yes, I would say that it is incomplete. > > On Mon, May 29, 2017 at 02:55 eksperimental <eksperimen...@autistici.org> > wrote: > > > Working in the

[elixir-core:7166] Possible bug in doctests

2017-05-28 Thread eksperimental
Working in the latests addition to doctests let me found this bug, This is an actual test, defmodule ExUnit.DocTestTest.Incomplete do @doc ~S''' iex> 1 + 2 ''' def test_fun, do: :ok end it fails because there is nothing to evaluate against at the end of the doctest, But I see that

Re: [elixir-core:7165] [Proposal] Improve supported syntax in Doctest

2017-05-28 Thread eksperimental
omments (#=>, #>>) cannot be treated as regular comments, because doctests will always validate with them. And yes, they are not evaluated (that's the whole point of having them), otherwise we would just use regular code. Please have a look at the final implementation. https://gi

Re: [elixir-core:7178] Introducing is_kind/2 and guard-safe operators: is, is_not, is_any, are, are_not, are_any

2017-06-01 Thread eksperimental
ote do: ... but without putting the logic inside a quote (which will be invalid in a guard), and unquoting kind to get the value from its calling environment. thank you. On Sat, 13 Aug 2016 02:22:09 +0700 eksperimental <eksperimen...@autistici.org> wrote: > the Comparison group of kin

Re: [elixir-core:7114] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
0170508221600.66851fc4.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.

Re: [elixir-core:7116] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
wd and ls are not going to be effective in doctests as the results will be > highly dependent of the user directory and what is on their machine. > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Mon, May 8, 201

Re: [elixir-core:7118] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
API to do exactly that. Such as File.ls! and > File.cwd!. > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R > > On Mon, May 8, 2017 at 6:26 PM, eksperimental <eksperimen...@autistici.org> > wrote: > >

Re: [elixir-core:7113] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
; Founder and Director of R > > On Mon, May 8, 2017 at 4:59 PM, eksperimental <eksperimen...@autistici.org> > wrote: > > > I have been working on a few improvements for doctests. > > Everything that I'm proposing here has already been implemented. > > The propos

[elixir-core:7111] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
rt, {self(), :close} #=> {#PID<0.80.0>, :close} iex> flush() #>> {#Port<0.1444>, :closed} :ok The implemented and tested code can be found here: https://github.com/eksperimental/elixir/tree/doctest_improvements3 Thank you for reading and looking

[elixir-core:7120] Regex related new changes in Elixir

2017-05-08 Thread eksperimental
roup and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170509044514.3d2c0295.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.