Mais conteúdo relacionado Feeding the sharks1. Powered by Rabbit 2.1.2
Feeding the Sharks
Ruby Association
Heroku
@yukihiro_matz
Yukihiro "Matz" Matsumoto
27. Powered by Rabbit 2.1.2
M17N (1.9 2007)
Native thread (1.9 2007)
Generational GC (2.1 2013)
30. Powered by Rabbit 2.1.2
Local variable scope
Multiple assignment
Keyword argument
Method combination
Selector namespace
Optional static type
31. Powered by Rabbit 2.1.2
Local variable scope (--)
Multiple assignment(1.9 2007)
Keyword argument (2.0 2013)
Method combination (2.0 2013)
Selector namespace (2.0 2013)
Optional static type (--)
40. Powered by Rabbit 2.1.2
Stabby lambda (1.9 2007)
Real multi-value (--)
Traits (--)
57. Powered by Rabbit 2.1.2
Complex literal
Rational literal
True division (1/2 => 1/2)
Bitmap marking
Symbol GC
58. Powered by Rabbit 2.1.2
Complex literal (2.1 2013)
Rational (2.1 2013)
True division (--)
Bitmap marking (2.0 2013)
Symbol GC (2.2 2014)
62. Powered by Rabbit 2.1.2
Mix (--)
Module#prepend (2.0 2013)
Refinement (2.0 2013)
mruby (2012)
136. Powered by Rabbit 2.1.2
[2] Soft typing: An approach to type
checking for dynamically typed
languages, Mike Fagan, 1991
142. Powered by Rabbit 2.1.2
# x requires to have to_int
def foo(x)
print x.to_int
end
foo(1) # OK: 1 has to_int
foo("a") # NG: "a" does not have to_int
143. Powered by Rabbit 2.1.2
Type is represented by:
Set of methods
name
number and type of arguments
Class (as set of methods)