this post was submitted on 05 Jul 2024
862 points (97.9% liked)

Programmer Humor

32054 readers
1515 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 118 points 2 months ago (29 children)

It uses XML-like syntax:

<fun>
  <name>sum</name>
  <in>
    <int>foo</int>
    <int>bar=0</int>
  </in>
  <out><int>foo+bar</int></out>
</fun>
[–] [email protected] 29 points 2 months ago (3 children)

The whitespace is not only required, but it must be tabs and spaces.

[–] [email protected] 8 points 2 months ago (1 children)

Compiler rolls the dice if your only required indentation is accepted as space or tab. Per line.

[–] [email protected] 2 points 2 months ago

But stores this information as a metadata file, which gets invalidated when a new file is added/removed from the program muhahaha!

load more comments (1 replies)
load more comments (26 replies)