-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add Result class #675
Add Result class #675
Conversation
Codecov Report
@@ Coverage Diff @@
## master #675 +/- ##
==========================================
+ Coverage 81.86% 81.86% +<.01%
==========================================
Files 57 57
Lines 7725 7727 +2
==========================================
+ Hits 6324 6326 +2
Misses 1132 1132
Partials 269 269
Continue to review full report at Codecov.
|
.vscode/tasks.json
Outdated
@@ -0,0 +1,18 @@ | |||
{ | |||
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
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.
Is it just me or these three line's background are different?
Also, I think we shouldn't put specific code editor's setting in the codebase. Is there any reason for this?
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.
Missed it. Will ad to the .gitignore
lib/option.gb
Outdated
@@ -0,0 +1,29 @@ | |||
class Option | |||
def initialize(name=nil, value=nil) |
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.
can we make the indentation to 2 spaces?
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.
Ah sorry!
@@ -1204,8 +1204,10 @@ func builtinClassCommonInstanceMethods() []*BuiltinMethodObject { | |||
loaders, ok := externalClasses[libName] | |||
externalClassLock.Unlock() | |||
if !ok { | |||
return t.vm.InitErrorObject(errors.InternalError, sourceLine, "Can't require \"%s\"", libName) | |||
|
|||
err := t.execGobyLib(libName + ".gb") |
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 👍
This is a really nice addition @eliothedeman @st0012 😍 |
Super basic implementation. Wasn't sure if it made sense to implement as a native go type or not though. #674