goby-lang / api.doc Goto Github PK
View Code? Open in Web Editor NEWAPI Documentation for goby language
Home Page: https://goby-lang.github.io/api.doc/
API Documentation for goby language
Home Page: https://goby-lang.github.io/api.doc/
class Foo
def bar
end
end
a = Foo.new
puts(a.bar)
<Instance of: Foo>
See: http://docusaurus.io/blog/2017/12/14/introducing-docusaurus.html
@Maxwell-Alexius Can you help on this?
a = nil
puts(a)
Goby outputs nill
while Ruby outputs empty line.
class Foo
attr_reader("bar")
end
a = Foo.new
a.bar = "fuz"
13sandbox.gb:9:in
<main>': undefined method
bar=' for #Foo:0x007ff1f610dac0 (NoMethodError)
Internal Error: interface conversion: vm.Object is *vm.RClass, not *vm.RObject
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject
But the following outputs as expected:
class Foo
end
a = Foo.new
a.bar = "fuz"
17sandbox.gb:6:in
<main>': undefined method
bar=' for #Foo:0x007ff0cf118b50 (NoMethodError)
goby 1 $goby 17sandbox.gb
UndefinedMethodError: Undefined Method 'bar=' for
The following encounters panic runtime: goroutine stack exceeds 1000000000-byte limit fatal error: stack overflow
while it works on Ruby:
module Foo
def ten
10
end
end
module Bar
def twenty
20
end
end
class Baz
include(Bar)
include(Foo)
end
class Baz
include(Bar)
include(Foo)
end
But the following works both on Goby and Ruby:
module Foo
def ten
10
end
end
class Baz
include(Foo)
end
class Baz
include(Foo)
end
The following works as well on Goby and Ruby:
module Foo
def ten
10
end
end
module Bar
def twenty
20
end
end
class Baz
include(Bar)
include(Foo)
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.