News for hackers. Stuff that matters.
Re:Show HN: CookLang – Recipe Markup Language by vborovikov on Wednesday October 27, 2021 @12:26AM (#29009539)
How about

  [@raw organic cane sugar, @honey]{3%tbsp}
Here square brackets indicate that the ingredient will have variations separated by commas.
Re:Show HN: CookLang – Recipe Markup Language by dubadub on Sunday October 31, 2021 @03:57PM (#29059861)
Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.
Re:Show HN: CookLang – Recipe Markup Language by quisnam on Wednesday October 27, 2021 @03:20PM (#29017822)
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.