Skip to content

Commit

Permalink
Update examples for start sequences
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser authored and Matthias Wahl committed Feb 19, 2021
1 parent c186ecc commit 995e00c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Rendered](https://github.com/tremor-rs/tremor-rfcs/blob/clustering/text/0000-clustering.md)
[Rendered](https://github.com/tremor-rs/tremor-rfcs/blob/<BRANCH>/text/<FILE>.md)

# Checklist

* [] Add a link to rendered text (see above)
* [] Assign core group reviewer (manual: assign review)
* [] Mark as ready for review / non-draft when ready for open review (manual: move to open for review)
* [] Core reviewer accepts the once the open review period is over, and there are no more outstanding issues (automation: accepted)
* [] Assign RFC number by the end of the review period
* [] Assign RFC number by the end of the review period
20 changes: 15 additions & 5 deletions text/0000-string-interpolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ An alternative would be to adopt a more verbose form of interpolation and prefix
* `%{ ... }` - the `%` sign with squiggly is currently also a record pattern for extractors, by that overloading the sign.
* `!{ ... }` - the `!` sign is easy to miss and not very readable
* `@{ ... }` - no overloading at the moment
* `&{ ... }` - no overloading at the moment
* `*{ ... }` - no overloading at the moment
* `{{ ... }}` - no overloading, a bit verbose

## Use cases

Expand All @@ -54,7 +57,8 @@ An alternative would be to adopt a more verbose form of interpolation and prefix
"13 + 29 = #{13 + 29} escaped: \#{}"
"13 + 29 = %{13 + 29} escaped: \%{}"
"13 + 29 = !{13 + 29} escaped: \!{}"
"13 + 29 = @{13 + 29} escaped: \%{}"
"13 + 29 = @{13 + 29} escaped: \@{}"
"13 + 29 = {{13 + 29}} escaped: \{{}}"
```
### object keys

Expand All @@ -65,7 +69,8 @@ An alternative would be to adopt a more verbose form of interpolation and prefix
"key_#{13 + 29} escaped: \#{}": 3,
"key_%{13 + 29} escaped: \%{}": 4,
"key_!{13 + 29} escaped: \!{}": 5,
"key_@{13 + 29} escaped: \@{}": 6
"key_@{13 + 29} escaped: \@{}": 6,
"key_{{13 + 29}} escaped: \{{}}": 7
}
```

Expand Down Expand Up @@ -94,6 +99,13 @@ An alternative would be to adopt a more verbose form of interpolation and prefix
},
"snot": #{badger},
}
# using double squigly
{
"key": {
"key1": 42
},
"snot": {{badger}},
}
"""
```

Expand Down Expand Up @@ -128,8 +140,6 @@ This can cause issues since both interpolation and format give `{}` a special me

Option 2 and 3 are non-exclusive



# Reference-level explanation
[reference-level-explanation]: #reference-level-explanation

Expand Down Expand Up @@ -204,4 +214,4 @@ f'13 + 29 = {13 + 29}'
# Future possibilities
[future-possibilities]: #future-possibilities
This RFC does exclude considerations for a templateing language. This is however a possible extension for the future worth keeping in mind but would require a separate file format to keep the complexity at bay.
This RFC does exclude considerations for a templateing language. This is however a possible extension for the future worth keeping in mind, but might require a separate file format or different syntax to keep the complexity at bay.

0 comments on commit 995e00c

Please sign in to comment.