string
Posted: 14 Aug 2019, 08:55
By default string in Autohotkey is verbatim behavior like in C# :
or
I think it's a better practice to define like this:
or
Wish
I'd like to define explicitly if I want to use verbatim behavior or normal in Autohotkey
or like this
Code: Select all
@"\\backslash is easy to type" ; output : \\backslash is easy to type
Code: Select all
@"""Hello world""" ; output : "Hello world"
Code: Select all
mystr := "\\\\need escape backslash" ; output : \\need escape backslash
Code: Select all
mystr := "\"Hello world\"" ; output : "Hello world"
I'd like to define explicitly if I want to use verbatim behavior or normal in Autohotkey
Code: Select all
mystr := @"""verbatim""" ; "verbatim"
; but I also want normal
mystr := "\"normal\""
Code: Select all
; currently in Autohotkey
mystr := """verbatim"""
; new feature
mystr := @"\"normal\""
; or
mystr := @"`"normal`""