by tipiirai · 2y ago · 0 comments
I think it's more that it's declarative that makes it simple. Also you just have to remember simpler rules compared to JSON.
E.g.
- Apple
- Orange
- Strawberry
- Mango
Is simpler than [
"Apple",
"Orange",
"Strawberry",
"Mango"
]
Don't forget to skip that last comma! But not all of the others!..it's no more or less declarative than other configuration languages?
And yes, I get that it looks simpler. I just think that it applies as long as your file can fit in about half a page. As it grows and becomes deeply nested, IMO, that simplicity disappears.
Look at the documentation [0] or at the OpenJDK code. Both assume ISO-8859-1, unless you're dealing with a special case where resource bundles are involved.
[0]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base...