3 ms·
I woudn't exactly call it consistent and design decisions are questionable. Even the article-mentioned def foo(*) bar(*) end is some needless
by ilyt 4y ago
I woudn't exactly call it consistent and design decisions are questionable. Even the article-mentioned
def foo(*)
bar(*)
end
is some needless nonsensical bloat, who on earth complained "oh, saying def foo(a) is so 90s, we need to have option to replace it with symbol used for multiplication or pointers in some cases!"
It's mediocre language that happened to have some then-popular web framework written in
- Alifatisk 4y agoWell there is also: def foo(*rest) bar(*rest) end if that helps? What would you prefer instead of the asterisk?