To answer two of your questions: There are no list comprehensions in Elm.
The thing with printing Date is a known issue. See https://github.com/elm-lang/core/pull/442. Am Donnerstag, 23. Juni 2016 schrieb barmin : > Hello, > > This is my first post on this list. I've been experimenting with elm for > the last few days and this is a very pleasant experience. > > First I want to thank Evan and the community for the excellent > documentation. The guide and other docs allowed me to get into the language > much quicker than I was expecting. > > I spent some time finding what elm-package incantations I had to do to > make the examples work, though. I think the guide should include some > up-to-date information about this. > > Some other impressions: > > - I was kind of expecting to find list comprehensions in the language. Did > I miss something or are they not there? > > - Some object "toString" representations are not so informative. Example > from the repl: > > > s = Date.fromString "2016-06-17T11:15:00+0200" > Ok {} : Result.Result String Date.Date > > To be honest, I first thought something had gone wrong... Is there a > reason it does not display something like > > Ok {2016-06-17 11:15:00} : Result.Result String Date.Date > > - It's a pity that the repl does not support multiline definitions. It > would be soooo much easier if I could copy-paste code from my editor to > test it. (I know, I can add \'s at the end of lines, but this is not a > quick copy-paste...) > > - I would expect that it is much easier to include an external css file in > the html generated by elm. I know I can compile to js and include it in a > custom html file, but for a quick test it would be much easier to be able > to specify a css file to use (and I'm not yet convinced that I want to > write my CSS in elm...) > > - As an exercise, I'm migrating a small app I first wrote in python. One > thing I really miss is string interpolation. For instance I had the > following code in python: > > '%02d:%02d' % (t.hour, t.minute) > that became > > (String.pad 2 '0' <| toString (hour date)) ++ ":" ++ (String.pad 2 '0' > <| toString (minute date)) > > - Coming from python I'm maybe a little biased towards dicts, but I would > have appreciated a native syntax for writing dicts instead of using > Dict.fromList. > > - I find the elm code I'm writing quite verbose as compared to the > original python code. But that might be because I'm not using elm to its > full potential yet. > > - Although I understand more and more of what I'm doing, it's still a lot > of trial and error. But having a very helpful compiler makes me confident > that if it compiles, I'm not that far from what I wanted to do... This is > very refreshing after some years of python as my main language! > > These are my first impressions after a few hours exploring the language. > But globally I'm very happy with my first experiences in elm, and if I find > the time I'm going to go on exploring elm during the next weeks! > > I do have a few more questions but I will make separate threads. > > Thanks again for the great project, > > Matthieu > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
