Lurker News

Comments (146) 44 threads

Show all comments

Showing thread 15 of 44

xutopia4 replies#
The only thing missing would be a substitute... for example "vinegar or lemon juice" is impossible to describe in the current language spec.
dubadub1 reply#
Good point, any idea how it could look like?
vborovikov2 replies#
How about

  [@raw organic cane sugar, @honey]{3%tbsp}
Here square brackets indicate that the ingredient will have variations separated by commas.
quisnam#
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.
dubadub#
Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.
splatcollision#
You could be inspired by the link reference syntax from markdown, and use the following where subs are possible:

add @acid{1%tsp} to @milk{1%cup} to create acidulated milk
[acid]{lemon juice|apple cider vinegar}
Anyway great spec and language!

gizdan#
Lots missing really, you can add nutrition and scaling things to that list.