-
FYI: `puts(a == 10)` works.
```ruby
» a = 10
#=>
» puts(a = 10)
Internal Error: runtime error: index out of range
panic: runtime error: index out of range [recovered]
panic: runtime error: i…
-
I've noticed that in Goby, the string literals `"true"` and `"false"` directly translate to boolean values (respectively, true and false).
Since this behavior is unique among the scripting language…
-
I'm struggling to setup the test environment, even with the current HEAD of master(df1aa5e). Postgres evidently needs some non-trivial setup, at least, for those not used to it :laughing:
I've bee…
-
I noticed that most of the tests use a before action to assign instance variables that are used throughout the tests. This is not great for a couple of reasons:
1. Instance variables are created wh…
-
Checked with REPL and normal execution.
```ruby
require "file"
puts(File.size("file.gb"))
```
Running:
```
goby tmp.gb
.gb
["/home/goby/", "test.sh"]
home/goby/test.sh
Internal Error:…
-
Note that the placement of instance variable `@inst` is meaningless and invalid.
Ruby just ignores the invalid `@inst = 1`. I wonder if Goby should warn this or not.
```ruby
» class Bar
* @ins…
-
Method for sending http POST requests
ear7h updated
7 years ago
-
Example:
```ruby
a || b || c
```
In Ruby if `b` is not a false value, than the expression returns.
But in Goby it'll execute like `(a || (b || c))`. This is because we treat the operators as me…
-
The hash pair order in REPL seems not corresponding to the input order, e.g., when I try to print out simple hash:
```Ruby
$ go run goby.go -i
Goby 0.0.9
» h = {a: "Hello", b: "World", c: "Goby"…
-
[class_test.go#265](https://github.com/goby-lang/goby/blob/master/vm/class_test.go#L265) causes panic on REPL (Works fine on normal execution)
```ruby
Goby 0.0.9
» module Baz
* class Bar
* …