Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
vborovikov
4y ago
0 comments
Save
Share
How about
[@raw organic cane sugar, @honey]{3%tbsp}
Here square brackets indicate that the ingredient will have variations separated by commas.
0 comments
2 comments · 2 top-level
top
newest
oldest
dubadub
4y ago
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
4y ago
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.
j
/
k
navigate · click thread line to collapse