Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

FINAL Pull Request #398

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

FINAL Pull Request #398

wants to merge 5 commits into from

Conversation

DeNickXI
Copy link

Release 1.0 is FINAL


// Mutates a single given char into a random one.
-(NSString*)charMutation:(NSString*)oldChar {
NSString* newChar = @"";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень хорошо, что решили придумать свой метод для замены элемента, отличного от заменяемого. Могу лишь сказать, что можно вообще не использовать цикл, а выбирать случайным образом из оставшихся 3 элементов, в дискуссиях на hexlet'е это разбиралось.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так же хочу заметить, что если метод никоим образом не влияет на состояние объекта - лучше делать его методом класса.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants