-
Notifications
You must be signed in to change notification settings - Fork 83
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
Renamed MdocSession.App to MdocSession.MdocApp #655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this contribution! I am concerned that the name repl.MdocSession$MdocSessionAppBody
is unnecessarily verbose given that it appears in all stack traces. I'm OK with changing the name but I'd prefer to use something shorter like ffun
(or anything in that direction really). What do you think?
@@ -299,8 +299,8 @@ class WorksheetSuite extends BaseSuite { | |||
compat = Map( | |||
Compat.Scala3 -> | |||
"""|crash:4:1: error: java.lang.RuntimeException: boom | |||
| at repl.MdocSession$App.crash(crash.scala:7) | |||
| at repl.MdocSession$App.<init>(crash.scala:15) | |||
| at repl.MdocSession$MdocSessionAppBody.crash(crash.scala:7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| at repl.MdocSession$MdocSessionAppBody.crash(crash.scala:7) | |
| at repl.MdocSession$MdocApp.crash(crash.scala:7) |
Maybe? Will be shorter a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! just renamed it to your suggestion.
I considered other more generic names, but in the end I thought it would be simpler and more tolerant to name conflicts if it contains Mdoc in its name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
App
is a common name which conflicts with some codes and there is no meaningful workaround I think. so I renamed it to a more descriptive name that is also extremely hard to get ambiguous reference error from.it might resolve #204 too.