armgong / rjulia

R package which integrating R and Julia
GNU General Public License v2.0
145 stars 23 forks source link

return value from R_Julia_MD for zero length vector #37

Open phaverty opened 8 years ago

phaverty commented 8 years ago

R_Julia_MD currently returns jl_nothing if it gets a zero-length input. What would you think about letting it return a zero-length julia variable of the appropriate type? I think this would be the "type stable" thing to do in julia terms.