Discussion:
[elm-discuss] What is the Elm equivalent of a Data Specification Language (EDN in Closure, ADTs, etc)?
Gaurav Rampal
2017-05-26 12:57:48 UTC
Permalink
Hi,

I am new to Elm, and thank you for your patience with my questions.

Since the emphasis in functional languages is on keeping functions pure it
seems that an equivalent emphasis must be placed on structuring data.

Formal computer science has ADT, Lisp has S-expressions, Clojure has EDN.
So what is the equivalent in Elm? Or should I emphasize understanding the
basic data structures and Union Types.

Thanks

Gaurav
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter Damoc
2017-06-09 06:12:28 UTC
Permalink
Hi Gaurav and welcome to Elm!

Your intuition is correct, you should emphasize understanding the basic
data structures and build something with them.

If you have a concrete problem you are trying to solve you will be focusing
on finding the solution.

Without a concrete problem is tempting to go into your knowledge from other
programming languages and try to understand Elm in terms of design. This
path is less fun than the one where you implement something.

Go through the guide:
https://guide.elm-lang.org/

Play with the examples:
http://elm-lang.org/examples

One thing you could try, for example, is to use the field example and the
http example together so that you can type the topic
http://elm-lang.org/examples/field
http://elm-lang.org/examples/http
Post by Gaurav Rampal
Hi,
I am new to Elm, and thank you for your patience with my questions.
Since the emphasis in functional languages is on keeping functions pure it
seems that an equivalent emphasis must be placed on structuring data.
Formal computer science has ADT, Lisp has S-expressions, Clojure has EDN.
So what is the equivalent in Elm? Or should I emphasize understanding the
basic data structures and Union Types.
Thanks
Gaurav
--
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
For more options, visit https://groups.google.com/d/optout.
--
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...