Comments (4)
How are you printing out the output? Note that Elixir has two string formats, one of which is called a binary (see http://elixir-lang.org/getting-started/binaries-strings-and-char-lists.html). If you are using iex to output the edn you'll get the angle-bracket notation because the strings are in binary format.
However, just outputting the edn to a variable and then reading back in from that variable shouldn't give you the problem you see. (I believe there are tests that establish that.) If that's a problem, then there's something wrong.
I believe IO.puts will give you a string output that doesn't contain the angle brackets.
from exdn.
could an issue be that I'm using tuples?
from exdn.
I don't believe there is any conversion from Elixir tuples to edn, since edn doesn't have a tuple type.
However, the angle brackets almost certainly comes from the way Elixir represents a binary string format when inspected. You'll get those if you write to edn in a format that doesn't recognize those as strings, and then when you attempt to read back the serialized edn with the angle brackets you'll get the problem you see.
from exdn.
Thanks for your replies. i've stopped using tuples. :)
from exdn.
Related Issues (3)
- warning after compile HOT 5
- `from_elixir/1` mangles emoji HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exdn.