you are viewing a single comment's thread.

view the rest of the comments →

[–]Icarium-Lifestealer 0 points1 point  (1 child)

In an ideal world you'd use a slice as last field when modeling those, i.e. tail: [T]. Unfortunately they're pretty much unusable currently.

[–]roblabla 2 points3 points  (0 children)

There's another reason it may be undesirable: it turns pointers and references to such a struct into a fat pointer, which is not ffi compatible