|
|
|
|
|
by rustyboy
1917 days ago
|
|
Let me just clarify, sorry i'm from python, so not very familiar but this feels like a "circular reference". You're implementing a struct CartStore which has methods GetById, and Put. Because interfaces (or contracts) are implicit then it's automatically considered a Cart. What I don't understand is the return types of these functions, a pointer to a cart's cart member? or an error. |
|
I will update the example because it's confusing !
If you have some time come to the speak with me in the chatbox on the website I can help you understand this.