go-unityscopes v2 lacks some useful functions
Bug #1557964 reported by
Gary.Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
go-unityscopes |
New
|
Undecided
|
Unassigned |
Bug Description
1.We now are not able to use the following functions just like the way we use in C++
- setUserData()
- Userdata()
- HasUserdata()
2. Also no way to push widgets list over []PreviewWidget which makes it harder to push widgets in some cases in elegant way.
e.g. reply.PushWidge
The following way may look better
widgets := make([]
for index := 100; index >= 0; index-- {
comment := scopes.
....
widgets = append(widgets, comment)
}
reply.PushWidge
To post a comment you must log in.
Sorry for not getting back to you promptly on this bug report.
We'll look at adding the extra API for [1].
For [2], that idiom already works if you change the last line to "reply. PushWidgets( widgets. ..)". That's three extra characters for this unusual case, while changing the call signature would add 24 characters to the simpler common case.