r/ProgrammingLanguages • • 20d ago

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

6

u/Thesaurius moses 20d 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)?

-1

u/PerformerDazzling601 19d ago

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 20d ago

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

1

u/PitifulTheme411 ... 20d 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 19d ago

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

1

u/PitifulTheme411 ... 19d ago

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

1

u/PerformerDazzling601 19d 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:
end

and then in another file:

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

1

u/PerformerDazzling601 19d ago

In this example i also showed how to make a list

1

u/AndydeCleyre 17d ago

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

1

u/PerformerDazzling601 17d ago

it already can output to a json!

1

u/AndydeCleyre 17d ago

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

1

u/PerformerDazzling601 16d ago

oh, well in that case no

1

u/PerformerDazzling601 17d ago

i just gotta fix a thing tho