mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
96752afa4d
Struct map is a mechanism to let Go code expose simple structs to Elvish code. The difference between struct maps and maps is convenience for Go code; they also have different performance characteristics, but since struct maps are always quite small, the difference is not meaningful for Elvish's use cases. As a result, there is no good reason that Elvish code needs to be aware of the difference between struct maps and normal maps. Making them indistinguishable to Elvish code simplifies the language. This commit does the following: - Change Equal, Hash, Kind and Repr to treat struct maps like maps. - Change Assoc and Dissoc to "promote" struct maps to maps. - Remove the custom Repr method of parse.Source. - Update documentation to reflect this change. |
||
---|---|---|
.. | ||
cmpd | ||
np | ||
parseutil | ||
testdata/fuzz/FuzzParse | ||
check_ast_test.go | ||
check_parse_tree_test.go | ||
fuzz_test.go | ||
node.go | ||
parse_test.go | ||
parse.go | ||
parser.go | ||
pprint_test.go | ||
pprint.go | ||
quote_test.go | ||
quote.go | ||
source_test.go | ||
source.go | ||
testutil_test.go | ||
zstring.go |