Re: [elm-discuss] Improve Elm docs.

2016-07-13 Thread Joey Eremondi
Key-value pairs is a misnomer. Records are name-value pairs, the same way that you can give names to members of a Python objects. So while the docs need to be fixed, I think the use of the term "key-value" pair is the problem. In Python, you can do myObject.foo, but not myObject."foo" or myObject.

Re: [elm-discuss] Improve Elm docs.

2016-07-13 Thread Nir Galon
Thank you very much! On Thursday, July 14, 2016 at 8:55:09 AM UTC+3, Janis Voigtländer wrote: > > I would appreciate any help on how to find the source code so I can do a > PR and fix this. > > https://github.com/evancz/guide.elm-lang.org > ​ > > 2016-07-14 7:20 GMT+02:00 Nir Galon >: > >> Hi, >>

Re: [elm-discuss] Improve Elm docs.

2016-07-13 Thread Nir Galon
This is true, but I think in the docs, they are talk about the way of thinking of the records and not the access part. Because if this is the case we can say it's also similar to java object, we also access their variables with the dot notation. And PHP and C++ are a bit similar, but instead of a

Re: [elm-discuss] Set.fromList crashing

2016-07-13 Thread Janis Voigtländer
Try again with a *re-install* of version 4.0.2 of core. A bug like you observe would occur in an intermittent state of core with toString (and thus with Debug.log etc.) on any set. It was fixed in https://github.com/elm-lang/core/commit/fd51917a77570b08d04e6809dd62ac8020c32ac7, and version 4.0.2 of

Re: [elm-discuss] Improve Elm docs.

2016-07-13 Thread Janis Voigtländer
I would appreciate any help on how to find the source code so I can do a PR and fix this. https://github.com/evancz/guide.elm-lang.org ​ 2016-07-14 7:20 GMT+02:00 Nir Galon : > Hi, > I'm a Python developer, and I"m just getting into elm. > I start by reading the documentation and I notice an err

Re: [elm-discuss] Improve Elm docs.

2016-07-13 Thread Peter Damoc
Hi Nir and welcome to Elm, I also come from Python and I consider the statement to be correct. Please notice that the word "similar" is used not "exactly". For accessing purposes, Elm records behave similar enough to python objects. If I have a python object with the fields "name" and "surname" I

[elm-discuss] Set.fromList crashing

2016-07-13 Thread Zachary Kessin
When I try to do Set.fromList on this list I am getting elm to crash with this error I think its a sorting error. I have not had a chance to reduce it down to a smaller case yet TypeError: _p0 is undefined if (_p0.ctor === 'RBEmpty_elm_builtin') { ["1271762438561282616_218752125","1287040804540

[elm-discuss] Improve Elm docs.

2016-07-13 Thread Nir Galon
Hi, I'm a Python developer, and I"m just getting into elm. I start by reading the documentation and I notice an error in core_language page. I try to find the website source code and do a PR, but with no success (found the website source code, but t

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-13 Thread Max Goldstein
It's great that Elm can appeal to new programmers, but it's mainly targeting web developers. As such, things like max/min, ||/&&, and "string" are going to stick around. No need to reinvent what's been standard(-ish) since C. The biggest name annoyance, IMHO, is *filter*. It doesn't immediately

[elm-discuss] Re: [ANN] elm-mdl 6.0.0 released

2016-07-13 Thread Aislan de Sousa Maia
The button's animations are buggy, right now. I'm using Firefox 47.0. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. Fo

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-13 Thread Ray Toal
There're a few good suggestions there. One thing that caught my eye was 5a, (List.singleton). No lambda is needed singleton is just the function repeat 1. But yeah, consistency with the other collection types would be nice. (And I'm sure #6 is a non-starter let's give beginners some cre

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-13 Thread danneu
I think it does more harm to redefine existing functions like `take` and `drop` which exist in other languages. Instead, it always seems better to introduce new names or reuse existing ones. Elm does seem to have an issue with not only an ultra-conservative standard library but also an inconsis

[elm-discuss] Re: Elm logo copyright / usage guidelines

2016-07-13 Thread Ray Toal
I'm bringing this up again because I'd like to use the Elm Logo in a book. Do we bother Evan directly? On Saturday, March 26, 2016 at 11:56:55 AM UTC-7, Erik Simmler wrote: > > Does anyone know the formal copyright status of the Elm logo? > > We'd like to put a modified version of the Elm logo o

[elm-discuss] Re: List.sortBy browser dependance?

2016-07-13 Thread Frederick Yankowski
A workaround I’ve used to get stable sorting in Javascript is to add an artificial index, sort with that as a secondary sort parameter, and then strip that index off from the result. To sort a list of int-pairs in Elm it could go like this: stableSort : List (Int, Int) -> List (Int, Int) stab

[elm-discuss] Markdown library

2016-07-13 Thread Esteban Manchado Velázquez
Hi, I'm trying to use the Markdown library (evancz/elm-markdown) and I cannot seem to be able to make it work. I ran: elm-package install evancz/elm-markdown and got version 3.0.0, apparently the only one that works with Elm 0.17, what I'm using. However, when I try to compile the project,

Re: [elm-discuss] List.sortBy browser dependance?

2016-07-13 Thread Nick H
You're right. I was assuming that the problem was that we get different behaviors in different browsers. If your goal is to have identical results on all platforms, use sortWith and specify a comparison function that never returns EQ. But if your goal is to preserve the original order when elemen

Re: [elm-discuss] List.sortBy browser dependance?

2016-07-13 Thread Janis Voigtländer
Isn’t List.sortWith using exactly the same unstable JS sorting function under the hood? ​ 2016-07-13 17:22 GMT+02:00 Nick H : > For a workaround, all you need to do is use List.sortWith instead. > > sortBy uses JavaScript's native array sorting function under the hood. The > JS function is docume

Re: [elm-discuss] List.sortBy browser dependance?

2016-07-13 Thread Nick H
For a workaround, all you need to do is use List.sortWith instead. sortBy uses JavaScript's native array sorting function under the hood. The JS function is documented as being unstable (order not preserv

[elm-discuss] List.sortBy browser dependance?

2016-07-13 Thread Mark Green
It appears that the functionality of List.sortBy is semi-browser dependent when the sorting function is a partial ordering. My current version of Firefox sorts according to the partial order, and within ties, maintains the order from the original list. However, user reports have been that some oth

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-13 Thread Galfarragem
I would add to the discussion also the abbreviations in types (Msg, Cmd ..) ( http://package.elm-lang.org/help/design-guidelines#use-human-readable-names ) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

Re: [elm-discuss] Re: [ANN] elm-mdl 6.0.0 released

2016-07-13 Thread Søren Debois
Hi Dedo, In the Mega Footer demo should some elements be dropdowns? They don't work in current Chrome/OSX. The “Dropdowns” are dropdowns only on small devices. If you resize your browser, they should become proper dropdown. Also, in Layout / Color, any color selection results in a transient blue

[elm-discuss] Re: Sending messages up the component tree in Elm 0.17

2016-07-13 Thread Erik Lott
Sandi, one way to manage component to component communication is to use ports and subscriptions: https://groups.google.com/d/msg/elm-discuss/i99LBvYSkpY/yQyk6WB0AAAJ Hope that helps. On Thursday, July 7, 2016 at 1:50:41 PM UTC-4, Sandi Dušić wrote: > > In Elm 0.16 the Architecture tutorial had o

[elm-discuss] Re: handling URL params in ELM

2016-07-13 Thread William Bailey
All good - phew. Thanks Peter! So it turns out the urlParser you hand to Navigation.program gets invoked on the initial URL before the call to init happens, and the output of urlParser feed into init. This was not obvious to me from the documentation nor the examples I found, which are more

Re: [elm-discuss] Use Html special attributes which are not yet implemented in Elm

2016-07-13 Thread Diego Aviles
The latter option is certainly what I was looking for and it works just fine. Thank you. I am mad with myself, spent to much time looking for a solution which basically had no real problem. It always boils down to: Read the Docs *completly* before Googling. Herzlichen Dank! Am Mittwoch, 13. Ju

Re: [elm-discuss] Use Html special attributes which are not yet implemented in Elm

2016-07-13 Thread Janis Voigtländer
It’s unclear, to me, from your message why neither http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-Attributes#property nor http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-Attributes#attribute lets you do what you want. ​ 2016-07-13 12:03 GMT+02:00 Diego Aviles : > Hi t

[elm-discuss] Re: [ANN] elm-mdl 6.0.0 released

2016-07-13 Thread David Legard
OK, thanks. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

[elm-discuss] Use Html special attributes which are not yet implemented in Elm

2016-07-13 Thread Diego Aviles
Hi there! I've been interested in the Elm Architecture for a while and I've been given permisson from my team to work on a side project to test it out and see if we can start to implement Elm step by step. We are looking to create a more high-performance UI, but it's important that our rendered

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-13 Thread Maximilian Hoffmann
Thanks! This post was much better than the title suggested. In my opinion these are all valid points, but not as urgent as other problems people currently have with Elm. I’m sure Evan will revisit the naming of functions once major pain points of the language have been addressed. From my experi

[elm-discuss] I dislike the names of certain standard library functions.

2016-07-13 Thread John Bugner
I dislike the names of certain standard library functions. Below, I list each one and explain why I dislike it. (1) Basics.max, Basics.min, List.maximum, List.minimum (a) The names 'max' and 'min' do not clearly convey what these functions do. When I see 'max 13 10' or '3 `max` 10', I think of t

[elm-discuss] Re: [ANN] elm-mdl 6.0.0 released

2016-07-13 Thread Håkon Rossebø
You seem to use the demo folder "as is". The demo uses the Material source directly from source references in elm-package.json. To use it without source, you need to reference elm-mdl in elm-package.json like this "dependencies": { "debois/elm-dom": "1.2.0 <= v < 2.0.0", "debois/e

Re: [elm-discuss] What is the purpose of this board?

2016-07-13 Thread Will White
I think https://github.com/elm-lang/error-message-catalog/issues is the place for the error message. On Monday, July 11, 2016 at 10:56:05 PM UTC+1, Nick H wrote: > > Please do not make a new thread to list them all. Most of them are likely > to have been brought up before. > > The most useful pl