Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ericb
on Aug 17, 2011
|
parent
|
context
|
favorite
| on:
Rails 3.0.10 Released
On a separate note, since you're a Ruby core committer, what do you think of the idea of adding CoffeeScript-ish style instance variable syntax for Ruby method definitions? Like this:
def tenderlove(@tenderness)
end
wycats
on Aug 17, 2011
|
next
[–]
That syntax already works in blocks, so it will work with define_method ;)
judofyr
on Aug 17, 2011
|
parent
|
next
[–]
Only in 1.8.
tenderlove
on Aug 17, 2011
|
parent
|
prev
|
next
[–]
meow. <3
tenderlove
on Aug 17, 2011
|
prev
[–]
They seem better. Not sure if it's life changing though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
def tenderlove(@tenderness)
end