boson-lang icon indicating copy to clipboard operation
boson-lang copied to clipboard

Passing `boson::types::object::Object` as input parameters, something like $1 $2 in bash?

Open Animeshz opened this issue 2 years ago • 3 comments

BosonLang::eval_buffer() doesn't let to push any external parameters, if we could send rust types which can be Into<Object> deeply, it'll be very beneficial to manipulate them from boson...

Same way we can return, we can take parameters (in form of arrays of Object).

Is there anything already present that I'm missing to look at or is it not implemented yet.

Animeshz avatar Aug 06 '22 07:08 Animeshz

Or we could have a serde feature which lets a serialized stateless data to be directly parsed and used as input parameters.

Animeshz avatar Aug 06 '22 07:08 Animeshz

Hi @Animeshz thanks

Seems interesting. Let me know if you want to make a PR!

Narasimha1997 avatar Aug 07 '22 00:08 Narasimha1997

Okay, I'll try :)

Animeshz avatar Aug 07 '22 05:08 Animeshz