Vyxal D
, 73 51 bytes
`#Ėß₂:ṘQ,…+ṘẎ7:Ṙq`Ṙ:₂ßĖ#`
`#Ėß₂:ṘQ,…+ṘẎ7:Ṙq`Ṙ:₂ßĖ#`
Try it Online!
`#Ėß₂:ṘQ,…+ṘẎ7:Ṙq` # push this string to the stack
Ṙ: # reverse the string and push a copy
₂ßĖ # execute the top if the length is even
# EXECUTION at this point the stack is [ qṘ:7ẎṘ+…,QṘ:₂ßĖ# ]
Ṙq # quote and revert => [ `#Ėß₂:ṘQ,…+ṘẎ7:Ṙq` ]
Ẏ7: # get the 7 first char => [ `#Ėß₂:ṘQ,…+ṘẎ7:Ṙq` , `#Ėß₂:Ṙ ]
+Ṙ # revert and add => [`#Ėß₂:ṘQ,…+ṘẎ7:Ṙq`Ṙ:₂ßĖ#`]
Q,… # print, reprint and quit
#Ėß₂:Ṙ # does nothing since the program ended
# END OF EXECUTION
#` # comment
When any char of the string is removed ₂ß
prevents the execution
if a ``
is removed, no code of the line will execute because the line will be either comented, either one single string either a mix of both and no execute fire
if ₂
is removed, the code will execute normally (as the deletion is not in the string)
if any of Ṙ:ßĖ
is removed, the code will be either equal to 0
, 1
, a commented code or there will be no execution. This has no incidence and the code will executein the second line
In any case the first execute will either have the string untouched or a string without incidence, in wich case, the second execute will have the string untouched.
The program ends at the first sucessful execute since there is a quit instruction in the string
n=1
subset/version of codegolf.stackexchange.com/q/57257/42963 ? \$\endgroup\$