Skip to content

refactoring after #830#877

Merged
filipw merged 3 commits into
scriptcs:devfrom
adamralph:refactor-830
Dec 23, 2014
Merged

refactoring after #830#877
filipw merged 3 commits into
scriptcs:devfrom
adamralph:refactor-830

Conversation

@adamralph
Copy link
Copy Markdown
Contributor

  • introduce IRepl
  • move IReplEngine to own file
  • add guards
  • remove redundant code
  • fix code formatting
  • add readonly

also fixes #434

@filipw
Copy link
Copy Markdown
Member

filipw commented Dec 23, 2014

you should also register IRepl against Repl in the services builder, inject it so that it's not newed up, and expose it publicly to allow for overrides like all the other services. This was the goal of #434.

@adamralph
Copy link
Copy Markdown
Contributor Author

Will do.

 - redundant code
 - line length
 - guard clauses
 - EOL at end of file
 - readonly fields
 - replace if with null coalesce
 - replace if with inline conditional
 - whitespace
@adamralph
Copy link
Copy Markdown
Contributor Author

Done.

@adamralph adamralph assigned filipw and unassigned adamralph Dec 23, 2014
@filipw
Copy link
Copy Markdown
Member

filipw commented Dec 23, 2014

great! thank you!

filipw added a commit that referenced this pull request Dec 23, 2014
@filipw filipw merged commit 09bb9af into scriptcs:dev Dec 23, 2014
@adamralph adamralph deleted the refactor-830 branch December 23, 2014 11:36
@adamralph adamralph added this to the v0.12 milestone Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make REPL injectable and overrideable like other services

2 participants