Value blocks for simplifying defining nested values #3931
Arithmomaniac
started this conversation in
Language Suggestion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Clear and concise description of the problem
Taking this example from the documentation:
The nested
#
s are fine at a small scale, but for larger objects (like@example
) it cuts against the grain of how people expect to read code. (It also prevents people from pasting in JavaScript objects they may already have, which otherwise would work.)The proposal here, inspired by the raw string syntax in C#, would be to allow something like the following:
In this block,
{
and[
would be interpreted like#{
and#[
, respectively.Beta Was this translation helpful? Give feedback.
All reactions