Zon Path (like json path?)
Ziggit
Zon Path (like json path?)
If you were asked to represent a “path” into a struct, how would you? One example is an array of enum literals: // zon .{.farmers, .john, .age} => 56 or array of strings: // zon .{"farmers", "john", "age"} => 56 If you wanted to embed these paths into a ZON file, what would you chose? zon-path in string literal: //zon .{.path = ".farmers.john.age"} array literal of string literals: //zon .{.path = .{"farmers", "john", "age"}} array literal of enum literals: //zon .{.path = .{.farmers,...
0 comments
No comments yet.