Sep. 3rd, 2023

juan_gandhi: (Default)

Я хотел глянуть насчет параметрических типов, и он предложил мне версию его ИИ, и вот какую он мне задвинул хуйню, малятки:

"Generic classes in Scala are classes that take a type as a parameter. This means that one class can be used with different types without having to write it multiple times. Generics are a powerful feature in Scala that allow you to create classes, traits, and functions that work with multiple types. 

When declaring a class in Scala, you can specify type parameters by surrounding them with square brackets. For example, you can declare class Foo[A]. The placeholder A can then be used in the body of the class to refer to the type. 
One convention is to use the letter A as type parameter identifier, though any parameter name may be used. The symbols used for a type parameter of a simple type is A, like List[A]. The symbols used for a type parameter of second, third, fourth, and so on, types in generic classes are respectively B, C, D, and so on. 
Думаю, этот ихний бот Го имеют в виду. Даже не Джаву.

Вот еще статейка на эту тему, как бота разоблачить.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 24th, 2025 04:28 pm
Powered by Dreamwidth Studios