--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The end result might be a standard library that has too many parameters and still doesn’t always do what an application wants.
(Or we might hit it exactly right. But that still needs to be shown. If we can pull that off, great.)
--
:xmerl :) the truth is that it's available...
воскресенье, 9 февраля 2014 г. пользователь José Valim написал:
There is no XML in Elixir. URI is a very tiny module compared to anything like JSON. :)
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Alright, I was coming here to ask where Elixir had XML, because if it had it I was going to feel like a dope doing a series on using xmerl, but yeah, that's what I thought.Having :xmerl is clearly not the same as having XML built-in. Importing records to do anything useful == not first-class in elixir (status in Erlang proper be damned).I was going to proffer a -1 on this feature earlier, at least for 1.0. I'm not sure where I stand now. I know that I think it's a +1 after 1.0, and if including it isn't going to detract from the rest of the language's development, then I think I'm +1 on it for now. Primarily for the 'zomg so many json dependencies' reason.Having json built in isn't going to detract from the chance to use external json libs when needed for some reason, as evidence I offer Ruby. Anyway, that's my take on it - cautionary +1 for pre-1.0, blatant +1 for post-1.0.
On Sun, Feb 9, 2014 at 6:15 AM, mrshankly <mrshank...@gmail.com> wrote:
On 09/02/14 11:40, o...@aleph0.cc wrote:
:xmerl :) the truth is that it's available...
воскресенье, 9 февраля 2014 г. пользователь José Valim написал:
There is no XML in Elixir. URI is a very tiny module compared to anything like JSON. :)
--
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+unsubscribe@googlegroups.com.
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
xmerl is not elixir thought.
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Josh Adams
Also, I think a pot of people here are overestimating how large a JSON "library" would be. A couple of files a library does not make. Ecto clearly doesn't belong in core, but something as simple and useful as JSON does.
A huge reason this belongs on core is not having it would rule out an entire class of tooling that uses the web. For example, I toyed with the idea of writing mix tasks to automatically resolve and set up component.js dependencies in a project, something that would be impossible today without FIRST pulling down Elixir dependencies and compiling. It just seems so ridiculous to need a dependency to talk the format 99% of modern web APIs export today.
So what I suggest is: the Elixir team adds some useful libs in a standard package that is installed along with Elixir. These may be used without specifying anything in the mix file. But they are not part of Elixir core and may be replaced in the future. Newer versions of any of these libs may be specified explicitly if necessary in the mix file.
Hi. I like the Rails model here: some dependencies are added by default, but they might be deprecated in future versions. If that happens you should rewrite your code or include the library explicitly.
So what I suggest is: the Elixir team adds some useful libs in a standard package that is installed along with Elixir. These may be used without specifying anything in the mix file. But they are not part of Elixir core and may be replaced in the future. Newer versions of any of these libs may be specified explicitly if necessary in the mix file.
--
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-co...@googlegroups.com.
On Sat, Feb 08, 2014 at 11:15:34AM +0100, José Valim wrote:
> Hello everyone,
>
> I have heard that Erlang/OTP is not going to have a JSON library. That
> said, I think it would be very hand if Elixir fills in this gap and provide
> a JSON library in core. Does anyone have reasons for why Elixir should not
> support JSON out of the box?
>
> PS: Please do not send pull requests for this yet as we will only worry
> about this after we have migrated to maps!
One one hand I think this is best left in a third party library.
On the other hand having 3 different JSON libraries included in your
project because one dependency uses one, another uses another, and
you're using yet another almost sounds like a good enough reason to
include one in the stdlib.
And on yet another hand maybe jazz might be a good candidate once the
new map stuff is in and I update it to reflect the changes ( ≖‿≖)
On 10 Feb 2014, at 01:05, Jim Freeze <jimf...@gmail.com> wrote:No.
> The JSON standard, or at least the implementations, seem to be changing frequently.
JSON has been described by the stable RFC 4627 since July 2006 (and that only documented stable practice).
Recently ECMA have created a little bit of instability by allowing other data than maps (objects) and arrays at the top.
This relatively trivial change will be reflected in a new RFC, currently at draft stage at:
http://tools.ietf.org/html/draft-ietf-json-rfc4627bis
Nothing else of substance has ever changed in JSON.
Now, of course, implementations can be improved all the time.
Some, misguidedly, compete in accepting any kind of soup that calls itself JSON (adding comments, single quotes, bad Unicode, ...).
Don't do that.
More importantly, libraries may improve in the way they map the simple JSON data model to and from the programming language's data model.
This is a place where the history of Elixir actually makes me hope its implementation will excel.
Grüße, Carsten
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.