Project

General

Profile

Bug #12984

Updated by sawa (Tsuyoshi Sawada) over 4 years ago

Splatting splatting an empty array to a construct that takes a list is supposed suppose to be equivalent to specifying no list 

 ```ruby 
 def foo 
 end 

 foo *[] #works 
 

 ``` 

 So so `rescue *[]` should be equivalent to `rescue` 

 ```ruby 
 begin 
   raise 'error' #Uncaught exception 
 rescue *[] 
   puts 'caught' 
 end 
 ``` 

Back