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
Feature wish:
Add at least
Obj.list_tag,
Obj.tuple_tag,
Obj.record_tag,
Obj.array_tag
it allow to write semi-normal 'a value printer.
What about
list_tag = 0
tuple_tag = 0
record_tag = 0
array_tag = 0
It allows for a very compact representation...
In ideal, it is better to tag values with unique type tags
(32bit tag value) and have a table with type descriptions
(field names for records and so on).
Supposedly, strong typing allows to use a more compact data
representation. You are simply suggesting to revert to a descriptive
dynamically typed representation. This is only going to be useful for
some very specific applications, but would be costly in all other
cases.
Note that the debugger is already able to use type information to
correctly print values.
Jacques
P.S. On the other hand, it might be nice to have the ability to add a
custom field to records, just as we already have for external data
structures. This would allow to introduce values with custom ordering,
serialization, and eventually printing.
Unfortunately, the way to declare them seems not so simple...
The text was updated successfully, but these errors were encountered:
Original bug ID: 2849
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
From: sjah@land.ru
What about
list_tag = 0
tuple_tag = 0
record_tag = 0
array_tag = 0
It allows for a very compact representation...
Supposedly, strong typing allows to use a more compact data
representation. You are simply suggesting to revert to a descriptive
dynamically typed representation. This is only going to be useful for
some very specific applications, but would be costly in all other
cases.
Note that the debugger is already able to use type information to
correctly print values.
Jacques
P.S. On the other hand, it might be nice to have the ability to add a
custom field to records, just as we already have for external data
structures. This would allow to introduce values with custom ordering,
serialization, and eventually printing.
Unfortunately, the way to declare them seems not so simple...
The text was updated successfully, but these errors were encountered: