Professional Documents
Culture Documents
Montes – T00041911
Assignment
An enumeration type is one in which all of the possible values, which are
named constants, are provided or enumerated in the definition.
Example (C#):
enum months {Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec}
Slices are used when working with data collections that might need to
expand or contract in the future, using a segment will ensure that the code is
error-free when trying to manipulate the set extent. And they are also used
when you need to store many elements or iterate them and want to be able
to easily modify those elements.
In Type Equivalence, object can be used if its type and the type expected by
the context are equivalent, that is, the data type of the object is the same as
expected. Objects and contexts can be equivalent only when their types are
the same.
Resources:
[1] Sebesta, R. W. (2016). Concepts of Programming Languages (11th ed.). Edinburgh Gate,
England: Pearson.
[2] Gopher Guides (2020, February 7). Información sobre matrices y segmentos en Go. Retrieved
March 29, 2020, from https://www.digitalocean.com/community/tutorials/understanding-arrays-and-
slices-in-go-es
[3] Programming Language Chapter 7. (n.d.). Retrieved March 29, 2020, from
https://quizlet.com/252454661/programming-language-chapter-7-flash-cards/