You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bumping this issue. We'd also like to write JSON into DEFFRAME HARDWARE-OBJECT and have it look nice. The backslashes are a bit of a bummer in that case.
In fact, would it unreasonable for Quil to have a designator for a JSON string? I feel like we're bumping into genuine contention between Quil and JSON (and potentially other formats) over the " character. Given the description,
HARDWARE-OBJECT is a string indicating the (implementation-specific) hardware object that the frame is associated with.
it seems reasonable to support structured strings describing objects here.
In Quil-T we make use of
PRAGMA FILTER-NODE
which expects a json-like string object. For exampleThe problem is, however, single-quoted strings are not valid JSON, so the above would have to be written
which is awkward and error-prone when writing by-hand.
If we supported using single quotes for the pragma freeform string then the above would become
@stylewarning WDYT?
The text was updated successfully, but these errors were encountered: