Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dan42
11 days ago
|
parent
|
context
|
favorite
| on:
T-Ruby is Ruby with syntax for types
Yeah, it doesn't work with keyword arguments. In the playground I tried a simple keyword with default value, and it converted to the wrong thing, as if "someone" was a valid type.
def greet(name: "someone"): String "Hello, #{name}!" end
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: