You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Erg polymorphic type is denoted as K(T), but K[T] is more reasonable.
First, polymorphic types are not functions; Class is a true type-level function that takes a type and returns a class, while Array, for example, is not.
Second, it is incompatible with Python's syntax: Python's syntax for polymorphic types is K[T], and K(T) covers the syntax for creating an instance of class K.
The text was updated successfully, but these errors were encountered:
The current Erg polymorphic type is denoted as
K(T)
, butK[T]
is more reasonable.First, polymorphic types are not functions; Class is a true type-level function that takes a type and returns a class, while Array, for example, is not.
Second, it is incompatible with Python's syntax: Python's syntax for polymorphic types is
K[T]
, andK(T)
covers the syntax for creating an instance of classK
.The text was updated successfully, but these errors were encountered: