'Are the 'unnamed' struct instances in this Swift data structure going to create unanticipated problems?

This code produces struct instances without a specified name (but which get identified with an '--lldb_expr_#' label). I can't anticipate any specific logistical problems associated with the structs not having explicit names, but I haven't used anything like this before and wanted to see if there are any technical/coding complications I might not be aware of. For context if needed: the goal is to create instances of the struct that are primarily identified by their unique date value, and may or may not have values for the other variables. I am also intending to store these 'records' in core data if that matters.

struct record {
    var date: Date
    var age: Int?
    var ID: String?
    var firstName: String?
    var lastName: String?
}

var records : [record] = []

records.append(record(date: Date(), age: 66, ID: "77", firstName: "Alain", lastName: "Delon"))


print(records)

Which outputs as:

[__lldb_expr_65.record(date: 2022-04-28 01:17:41 +0000, age: Optional(66), ID: Optional("77"), firstName: Optional("Alain"), lastName: Optional("Delon")), _

Essentially, is the '__lldb_expr_65.record' aspect of this going to cause me any problems? Ideally, the struct instance would be named with the 'date' value (as a string), but as far as I can tell it is impossible to name a struct instance with a variable value- right?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source