Alejandro Serrano.Mena
04/12/2024, 10:44 AM$ and " in (multiline) string literals -> https://github.com/Kotlin/KEEP/issues/375Klitos Kyriacou
04/12/2024, 11:17 AM$0 and $@ to be considered interpolations". Do we really need the double dollar for that? Is there any way "$0" and "$@" can actually be interpolated?Alejandro Serrano.Mena
04/12/2024, 11:48 AM$$ at the beginning, the resulting string will contain the $0 as they were writtenKlitos Kyriacou
04/12/2024, 11:52 AM""" style, the $0 and $@ would still appear in the resulting string exactly as they were written, wouldn't they?Oliver.O
04/12/2024, 12:27 PM0 nor @ are valid identifiers in Kotlin, so these would not be interpolated. The example in the KEEP looks incorrect.Alejandro Serrano.Mena
04/12/2024, 12:28 PMawk '!_[$NAME]++{print}' """$ARGS"""Oliver.O
04/12/2024, 12:47 PM"" concatenated with "$ARGS" and another ""). ARGS is not a predefined variable. The awk expression is somewhat strange.
For awk, I'd consider something like this, which prints the last field (login shell) for the user "nobody":
awk -F : '/^nobody:/ { print($NF) }' /etc/passwd
For the "triple quote" we'd have to find something where it would actually make sense...Oliver.O
04/12/2024, 12:52 PMprintln($$""""name = "Kotlin"; println("""Hello $name!""")"""")ephemient
04/12/2024, 4:13 PM$/ /$ slashy strings considered? following similar rules, interpolation would use `$name`/`${expr}` same as other strings, and $$ would be a single literal $. IMO that would feel more natural than having to use increasing numbers of `$$`sAlejandro Serrano.Mena
04/12/2024, 4:14 PM$ephemient
04/12/2024, 4:17 PM'''...''' would work for that goal too. although then I suppose it becomes a question of, do you want to introduce multiple new types of strings…