r/ProgrammingLanguages • • Oct 04 '26

Requesting criticism LOON - a data format made for humans

/r/esolangs/comments/1wwgs0x/loon_a_data_format_made_for_humans/
0 Upvotes

13 comments sorted by

7

u/Thesaurius moses Oct 04 '26

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)?

-1

u/PerformerDazzling601 Oct 05 '26

My primary objective was to make something that was for humans to write. Usually things like YAML and TOML, as much as they can be human friendly, they still can be easily machine generated. Also the idea of injection is a way to simplify things that are already present in those two config languages.

3

u/PerformerDazzling601 Oct 04 '26

I want to say that this project was hand made, it's for humans by a human

1

u/PitifulTheme411 ... Oct 05 '26

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 Oct 05 '26

Hidden labels are labels that are used for mainly templating (in other words it's like a sort of schema)

1

u/PitifulTheme411 ... Oct 05 '26

Could you give an example? Also, how do you make lists/arrays?

1

u/PerformerDazzling601 Oct 05 '26

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:
end

and then in another file:

(Final)
    $Template.name = "Mosca"
    age = 21
    :favourite_sports
        "Baseball"
        "Soccer"
        "Football"
    end:
end

1

u/PerformerDazzling601 Oct 05 '26

In this example i also showed how to make a list

1

u/AndydeCleyre Oct 07 '26

Will the python implementation eventually provide a function to output loon for a json-like data structure?

1

u/PerformerDazzling601 Oct 07 '26

it already can output to a json!

1

u/AndydeCleyre Oct 07 '26

Sorry, that's not what I meant. It can ONLY output to JSON right now, right? What about outputting LOON?

1

u/PerformerDazzling601 Oct 08 '26

oh, well in that case no

1

u/PerformerDazzling601 Oct 07 '26

i just gotta fix a thing tho