5 ms·
# cities Den Haag: 52.069961, 4.302315 Málaga: 36.721447, -4.421291 Here, “cities” looks like a comment, but it is part of the syntax, otherwise this examp
by teddyh 8y ago
# cities
Den Haag: 52.069961, 4.302315
Málaga: 36.721447, -4.421291
Here, “cities” looks like a comment, but it is part of the syntax, otherwise this example code would not work:
document.section('cities').lat_lng('Málaga')
The actual comment syntax is “>”:
> comment
- fnordsensei 8y agoIt looks like the H1 tag in markdown, where the number of #'s indicate title level.
- simonrepp 8y agoSpot on, that's how it works!
- simonrepp 8y agoYes exactly - Hashes denote 'sections' in eno! In the language design phase this was heavily inspired by markdown, because of the already widely familiar concept of 'headings' - I collected feedback from users that (although they showed considerable anxiety given the prospect that they were to use text files to edit their content in the future instead of a fancy web interface) they found working with markdown (quote) "super easy", so markdown was therefore an influential factor for some aspects of the language design. :)
- jacobevelyn 8y agoThis is a really cool project! I don't need quite the power of eno (yet!) in my CLI journaling app[1], but I similarly value the power of users being able to just easily read and write their own data. (I went with Markdown for the data store.) [1]: https://github.com/JacobEvelyn/friends https://github.com/JacobEvelyn/friends
- simonrepp 8y agoThanks for the encouragement! I like the philosophy of friends! (even though I too don't need quite the power of it (yet). ;))