Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/relatedwork.tex

    r41c4b5e rec20ab9  
    423423
    424424\section{Golang}
    425 \label{s:Golang}
    426425
    427426Golang has a no enumeration.
     
    10691068
    10701069Python is a dynamically-typed reflexive programming language with multiple versions, and hence, it is possible to extend existing or build new language features within the language.
    1071 As a result, discussing Python enumerations is a moving target, because if a features does not exist, it can often be created with varying levels of complexity within the language.
    1072 Nevertheless, the following is a discuss of the core enumeration features that come with Python 3.13.
     1070As a result, discussing Python enumerations is a moving target, because if a features does not exist, if can often be created with varying levels of complexity.
     1071Nevertheless, an attempt has been made to discuss core enumeration features that come with Python 3.13.
    10731072
    10741073A Python enumeration type is a set of ordered scoped identifiers (enumerators) bound to \emph{unique} values.
     
    10821081class Week(Enum): Mon = 1; Tue = 2; Wed = 3; Thu = 10; Fri = @auto()@; Sat = 4; Sun = @auto()@
    10831082\end{python}
    1084 where @auto@ increments by 1 from the previous enumerator value \see{Golang \lstinline[language=Go]{iota}, \VRef{s:Golang}}.
     1083where @auto@ increments by 1 from the previous enumerator value.
    10851084Object initialization and assignment are restricted to the enumerators of this type.
    10861085An enumerator initialized with same value is an alias and invisible at the enumeration level, \ie the alias it substituted for its aliasee.
     
    11091108\end{cquote}
    11101109
    1111 An enumeration \lstinline[language=python]{class} can have methods.
     1110As an enumeration is a \lstinline[language=python]{class}, its own methods.
    11121111\begin{python}
    11131112class Week(Enum):
Note: See TracChangeset for help on using the changeset viewer.