Ignore:
File:
1 edited

Legend:

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

    rec20ab9 r41c4b5e  
    423423
    424424\section{Golang}
     425\label{s:Golang}
    425426
    426427Golang has a no enumeration.
     
    10681069
    10691070Python 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.
    1070 As 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.
    1071 Nevertheless, an attempt has been made to discuss core enumeration features that come with Python 3.13.
     1071As 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.
     1072Nevertheless, the following is a discuss of the core enumeration features that come with Python 3.13.
    10721073
    10731074A Python enumeration type is a set of ordered scoped identifiers (enumerators) bound to \emph{unique} values.
     
    10811082class Week(Enum): Mon = 1; Tue = 2; Wed = 3; Thu = 10; Fri = @auto()@; Sat = 4; Sun = @auto()@
    10821083\end{python}
    1083 where @auto@ increments by 1 from the previous enumerator value.
     1084where @auto@ increments by 1 from the previous enumerator value \see{Golang \lstinline[language=Go]{iota}, \VRef{s:Golang}}.
    10841085Object initialization and assignment are restricted to the enumerators of this type.
    10851086An enumerator initialized with same value is an alias and invisible at the enumeration level, \ie the alias it substituted for its aliasee.
     
    11081109\end{cquote}
    11091110
    1110 As an enumeration is a \lstinline[language=python]{class}, its own methods.
     1111An enumeration \lstinline[language=python]{class} can have methods.
    11111112\begin{python}
    11121113class Week(Enum):
Note: See TracChangeset for help on using the changeset viewer.