Hacker News new | ask | show | jobs
by crnkofe 1599 days ago
Oddly enough the list doesn't resonate much with me.

I'd love to see better mocking support. Doing mock.On("fun name", ...) is so backwards, confusing and brittle. It's also a great source of confusion for teammates when tests fail.

I miss better transaction management. I regularly juggle db, transactions and related interfaces and it's a continuous pain.

Then there's the "workaround" for enforcing interface implementation: _ InterfaceType = &struct . This could be easily part of struct def. rather than having it in var section.

As was mentioned by others doing x := 5 only to later do JsonField: &x is just a waste of intellectual firepower. Maybe this can be alleviated by generics but the lang should be able to make this a one liner.