Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring: Extract method #5269

Open
Ducasse opened this issue Nov 30, 2019 · 0 comments
Open

Refactoring: Extract method #5269

Ducasse opened this issue Nov 30, 2019 · 0 comments

Comments

@Ducasse
Copy link
Member

@Ducasse Ducasse commented Nov 30, 2019

name
| token |
token := (String new: 100) writeStream.
[ currentChar isLetter ]
whileTrue: [ token nextPut: currentChar.
self consume ].
^ token contents

Extracting currentChar isLetter is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1 participant
You can’t perform that action at this time.