exercism / exercism/swift

[v3] Implement new Concept Exercise: properties

オープン
#421 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Swift
スター
122
フォーク
165
PR マージ指標
30日以内にマージされた PR はありません

説明

This issue describes how to implement the properties concept exercise for the Swift track.

## Getting started

**Please please please read the docs before starting.** Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read the following documents:

- [The features of v3][docs-features-of-v3].
- [Rationale for v3][docs-rationale-for-v3].
- [What are concept exercises and how are they structured?][docs-concept-exercises]

Please also watch the following video:

- [The Anatomy of a Concept Exercise][anatomy-of-a-concept-exercise].

## Goal

This concept exercise should convey a basic understanding of how to work with different kids of properties in Swift.

## Things to teach

- Stored properties
- Computed properties
- Lazy stored properties
- Property observers
- Type properties

## Things not to teach

- Property wrappers

## Concepts

- `stored-properties`
- `computed-properties`
- `property-observers`
- `type-properties`

## Prerequisites

- `structs-and-classes`
- `enumerations`

## Resources to refer to

### Hints

- [Properties][properties]

### After

- [Properties][properties]

## Representer

TBD

## Analyzer

TBD

## Implementing

See [the Swift track implementation guide][swift-implementing-concept-exercises] for guidance.

## Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

[swift-implementing-concept-exercises]: https://github.com/wneumann/v3/blob/master/languages/swift/reference/implementing-a-concept-exercise.md
[properties]: https://docs.swift.org/swift-book/LanguageGuide/Properties.html
[docs-concept-exercises]: ../../../docs/concept-exercises.md
[docs-rationale-for-v3]: ../../../docs/rationale-for-v3.md
[docs-features-of-v3]: ../../../docs/features-of-v3.md
[anatomy-of-a-concept-exercise]: https://www.youtube.com/watch?v=gkbBqd7hPrA

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。