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

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415 161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 19th, 2025 10:05 pm
Powered by Dreamwidth Studios