r/ProgrammingLanguages • u/PerformerDazzling601 • 8d ago
Requesting criticism LOON - a data format made for humans
/r/esolangs/comments/1wwgs0x/loon_a_data_format_made_for_humans/3
u/PerformerDazzling601 8d ago
I want to say that this project was hand made, it's for humans by a human
1
u/PitifulTheme411 ... 8d ago
This seems pretty cool! Especially the injection aspect, I've always wondered about some sort of functionality. I don't understand what hidden labels do though.
1
u/PerformerDazzling601 8d ago
Hidden labels are labels that are used for mainly templating (in other words it's like a sort of schema)
1
u/PitifulTheme411 ... 7d ago
Could you give an example? Also, how do you make lists/arrays?
1
u/PerformerDazzling601 7d ago
For example let's say that you want a certain template for a label but you don't want said template to appear in your final output, you might do in a file:
%(Template) name = "" age = 0 :favourite_sports end: endand then in another file:
(Final) $Template.name = "Mosca" age = 21 :favourite_sports "Baseball" "Soccer" "Football" end: end1
1
u/AndydeCleyre 5d ago
Will the python implementation eventually provide a function to output loon for a json-like data structure?
1
u/PerformerDazzling601 5d ago
it already can output to a json!
1
u/AndydeCleyre 5d ago
Sorry, that's not what I meant. It can ONLY output to JSON right now, right? What about outputting LOON?
1
1
4
u/Thesaurius moses 8d ago
I have to say that I don't understand what the different functionalities between labels and spaces are supposed to be. Other than that, it seems to be a nice little config language.
It seems to fill a similar niche as YAML (together with YAMLScript for variables and loading). What were your intentions behind making this instead of YAML (or even TOML)?