GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

Can I use a negative number of quotes while declaring a string?

Open TenViki opened this issue 1 year ago • 5 comments

As mentioned in the specification, you can define a string with any number of quotes. However, it does not specify, if or how can string be created with a negative number of quotes.

I would like for some more information about this specific, as I believe it would be useful in my use case of trying to run DreamBerd on a quantum computer.

TenViki avatar May 19 '24 16:05 TenViki

interesting and alarming

TodePond avatar May 19 '24 23:05 TodePond

I strikes me that some human languages like German can use „Gänsefüßchen", and using them to represent negative amounts would be in-line with inverted exclamation points:

you can use an inverted exclamation mark for negative priority.

However, commas (how I normally write subscript quotation marks) are already semantically significant. For that reason, I propose using the rich-text support to make "subscripted quotation marks" (here written with the <sub> tag) for maximum ease of writing.

Edit: a German speaker has informed me that „Gänsefüßchen" literally means "geese's feetsies", so a goose emoji :goose: / and a foot emoji 🦶 should also be acceptable opening- and closing- negative quotation marks.

MatthewMarinets avatar May 22 '24 02:05 MatthewMarinets

Could » and « act as -1i and +1i respectively, then?

mybearworld avatar May 23 '24 22:05 mybearworld

I think it is reasonable to implement minus quotes like this:

const const "name" = JS! // -1 quotes print("name")! // JS

imJinseop avatar Sep 27 '24 07:09 imJinseop

For minus quotes you just have to delete quotes from some random other file on a PC.

Also ✌should be valid quote

ktlknss avatar Nov 23 '24 09:11 ktlknss