12-11-2024, 03:41 PM
You have done measurements requiring this? Can you share them :3
Would be interesting seeing what sort of difference it makes in various scenarios.
I'm also curious what sort of perf impact merging alias chains down into the original code has.
Ruby version could be an important factor (1.8 vs 1.9 vs 2.7)
Oh yeah, a form for keyword arguments got introduced in 1.9. Bet 2.7 has a better keyword arguments making them easier to work with.
Would be interesting seeing what sort of difference it makes in various scenarios.
I'm also curious what sort of perf impact merging alias chains down into the original code has.
Code:
class Foo
def update(bar)
# Do bar stuff
# My stuff
# do original script stuff
end
end
Ruby version could be an important factor (1.8 vs 1.9 vs 2.7)
(12-11-2024, 12:52 PM)kyonides Wrote: The problem comes when people simply add the *args parameter to everythingPeople do that? Interesting, I normally use it for integration points, and where calling a method with a variable number of argument can make sense. Sometimes also when playing around with metaprogramming though that's just for fun.
Oh yeah, a form for keyword arguments got introduced in 1.9. Bet 2.7 has a better keyword arguments making them easier to work with.
![[Image: ZeriabSig.png]](http://www.twinkfish.com/al/ZeriabSig.png)