Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vborovikov
on Oct 27, 2021
|
parent
|
context
|
favorite
| on:
Show HN: CookLang – Recipe Markup Language
How about
[@raw organic cane sugar, @honey]{3%tbsp}
Here square brackets indicate that the ingredient will have variations separated by commas.
dubadub
on Oct 31, 2021
|
next
[–]
Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.
quisnam
on Oct 27, 2021
|
prev
[–]
Good idea. I'd prefer the at sign in front of the brackets, though.
@[sugar, honey]{3%tbsp}
It should be easier to parse and allows for brackets to be used elsewhere without escapes.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: