summaryrefslogtreecommitdiff
path: root/spec/03-types.md
Commit message (Collapse)AuthorAgeFilesLines
* Fix == in spec linearization examplesJanek Bogucki2017-04-101-2/+2
| | | | | | | Also - Consistify trailing punctuation - Use whitespace to group linearization examples
* Add language to code blocks in spec (#5502)Daniel Barclay2016-11-161-5/+5
| | | | | | | | | | | | | | | * Add "scala" language code to pure-Scala code blocks. * Add "java" language code to Java code block. * Add "scala" language code to almost-pure-Scala code blocks. Add "scala" language code to two code blocks whose content was Scala except for containing ellipses (\ldots). * Add "scala" language code to non-literal-Scala code blocks. Add "scala" language code to code blocks that contain Scala but also special elements, such as identifiers that are italicized or have prime marks (e.g., e′, e′′), ellipses (\ldots), etc.
* Merge pull request #5355 from dsbos/dsbos-SpecEditsAdriaan Moors2016-08-221-11/+11
|\ | | | | Italicize more defining occurrences of terms in Scala lang. spec.
| * Editorial: Italicized more defining occurrences of terms.Daniel Barclay2016-08-211-11/+11
| |
* | More fixes based on feedback by LukasAdriaan Moors2016-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Crucially, the fully-defined expected type must be checked for conformance to the original expected type!! The logic in adaptToSam that checks whether pt is fully defined probably needs some more thought. See pos/t8310 for a good test case. Argument type checking is a challenge, as we first check against a lenient pt (this lenient expected type has wildcards, and thus is not fully defined, but we should still consider sam adaptation a success even if we end up with wildcards for some unknown type parameters, they should be determined later).
* | Spec updates for Sammy.Adriaan Moors2016-03-261-38/+61
|/ | | | | | | | | - Upgrade MathJax to 2.6. This fixes the vertical bar problem on Chrome (https://github.com/mathjax/MathJax/issues/1300); - Disambiguate link to Dynamic Selection; - Consolidate type relations; - Formatting, whitespace and linebreaks; - SAM conversion.
* spec: Remove obsolete rules related to scala.NotNullGuillaume Martres2015-04-281-2/+1
| | | | | These rules were removed in #2244 and scala.NotNull itself was deprecated.
* Spec improvementsSimon Ochsenreither2015-04-251-11/+12
|
* Update 03-types.mdjhegedus422014-12-301-2/+2
| | | Using U_i instead of T_i is confusing. See http://stackoverflow.com/questions/26803244/is-this-a-typo-in-the-scala-language-specification-on-parameterized-types
* Update 03-types.mdroberthoedicke2014-10-081-1/+1
| | | Inserted missing word "bounds".
* Update 03-types.mdroberthoedicke2014-10-081-1/+1
| | | Fixed typo.
* SI-8870 Fix markup errors in the Types section of the specJason Zaugg2014-10-011-5/+5
| | | | | Bad: `T'_n` Good: `T_n'`
* spec: fix broken links and anchors, including examplesAntoine Gourlay2014-09-171-3/+3
| | | | | | | For examples, the "name" of the example (like "Example Ordered") is only used to derived its html id so that one can link to it (see `layouts/default.yml`). Ideally all examples should have a name; here I only added enough to satisfy existing links.
* spec: remove trailing whitespace everywhereAntoine Gourlay2014-09-171-153/+128
|
* spec: fix latex formatting all over the placeAntoine Gourlay2014-09-171-14/+14
| | | | | | | | | Two things worth mentioning: - `\em` and `emph` are not supported by MathJax, - and things like `\mathcal{C}_0` require escaping the `_`, otherwise markdown sees it as the beginning of `_some string_`. It doesn't happen without the closing bracket in front, e.g. in `b_0`.
* SI-8325 Spec accepts infix type *Som Snytt2014-05-071-2/+1
| | | | | | Remove the clause in 3.2.8 that reserves `*` as a postfix modifier thing. For emphasis, the language that an infix type name can be an arbitrary identifier is retained, sans buts.
* Rebase #3665Adriaan Moors2014-03-311-3/+3
|
* Reducing overlap of code and math.Adriaan Moors2014-03-281-36/+33
| | | | | | Prefer smaller islands of `code` in bigger sections of $math$. Do not include $`code` in math$, and avoid `$math$ in code`.
* Number files like chapters. Consolidate toc & preface.Adriaan Moors2014-03-281-0/+1059
Aside from the consolidation of title & preface in index.md, this commit was produced as follows: ``` cd spec/ g mv 03-lexical-syntax.md 01-lexical-syntax.md g mv 04-identifiers-names-and-scopes.md 02-identifiers-names-and-scopes.md g mv 05-types.md 03-types.md g mv 06-basic-declarations-and-definitions.md 04-basic-declarations-and-definitions.md g mv 07-classes-and-objects.md 05-classes-and-objects.md g mv 08-expressions.md 06-expressions.md g mv 09-implicit-parameters-and-views.md 07-implicit-parameters-and-views.md g mv 10-pattern-matching.md 08-pattern-matching.md g mv 11-top-level-definitions.md 09-top-level-definitions.md g mv 12-xml-expressions-and-patterns.md 10-xml-expressions-and-patterns.md g mv 13-user-defined-annotations.md 11-user-defined-annotations.md g mv 14-the-scala-standard-library.md 12-the-scala-standard-library.md g mv 15-syntax-summary.md 13-syntax-summary.md g mv 16-references.md 14-references.md perl -pi -e 's/03-lexical-syntax/01-lexical-syntax/g' *.md perl -pi -e 's/04-identifiers-names-and-scopes/02-identifiers-names-and-scopes/g' *.md perl -pi -e 's/05-types/03-types/g' *.md perl -pi -e 's/06-basic-declarations-and-definitions/04-basic-declarations-and-definitions/g' *.md perl -pi -e 's/07-classes-and-objects/05-classes-and-objects/g' *.md perl -pi -e 's/08-expressions/06-expressions/g' *.md perl -pi -e 's/09-implicit-parameters-and-views/07-implicit-parameters-and-views/g' *.md perl -pi -e 's/10-pattern-matching/08-pattern-matching/g' *.md perl -pi -e 's/11-top-level-definitions/09-top-level-definitions/g' *.md perl -pi -e 's/12-xml-expressions-and-patterns/10-xml-expressions-and-patterns/g' *.md perl -pi -e 's/13-user-defined-annotations/11-user-defined-annotations/g' *.md perl -pi -e 's/14-the-scala-standard-library/12-the-scala-standard-library/g' *.md perl -pi -e 's/15-syntax-summary/13-syntax-summary/g' *.md perl -pi -e 's/16-references/14-references/g' *.md ```