Похожие чаты

Is this a good idea? Should I use generics instead?

3 ответов

19 просмотров

generics are about parametric polymorphism, basically allowing types to be parameterized generics are not about artibrary data, you'll still need []byte for that

Liλn-🌻 Автор вопроса
Roman Sharkov
generics are about parametric polymorphism, basica...

Well, yes, but I could have datatypes representing multiple formats that simply hold []byte s

Liλn 🌻
Well, yes, but I could have datatypes representing...

so you want your API to accept different file formats?

Похожие вопросы

Обсуждают сегодня

Карта сайта