Re: Diamond <> or fileinput-like input handling (was Re: what type $in,$out and $err is)

2018-11-10 Thread yary
Can't answer most of your points. How to replicate this behavior in Raku without handling all the > args-handling and opening/closing logic yourself is now… unclear, at best, > and may simply be missing. > https://marketing.perl6.org/id/1541379592/pdf_digital has a hint " - see IO::CatHan

Diamond <> or fileinput-like input handling (was Re: what type $in,$out and $err is)

2018-11-05 Thread Trey Harris
On Mon, Nov 5, 2018 at 11:54 AM Ralph Mellor [ralphdjmel...@gmail.com](mailto:ralphdjmel...@gmail.com) wrote: On Sun, Oct 28, 2018 at 7:26 PM Xiao Yafeng wrote: > >> Besides, just curious, why choose '_' as default it looks

Re: what type $in,$out and $err is

2018-11-05 Thread Ralph Mellor
On Sun, Oct 28, 2018 at 7:26 PM Xiao Yafeng wrote: > Besides, just curious, why choose '_' as default it looks strange > Turns out it's deprecated in 6.d: https://marketing.perl6.org/id/1541379592/pdf_digital

Re: what type $in,$out and $err is

2018-11-01 Thread Ralph Mellor
On Sun, Oct 28, 2018 at 7:26 PM Xiao Yafeng wrote: > I'm curious about what type of $in is on Proc class. `$in` isn't "on `Proc` class". `$in` is a *parameter* of the `.new` *method*. > I mean, if $in is IO::Pipe object As a *parameter* of the `.new` method *declaration* the type of `$in`

Re: what type $in,$out and $err is

2018-10-28 Thread Brad Gilbert
That is talking about the arguments for the method/subroutine call. The way you pass in $in as True, is to add `:in` run "cat", "-n", :in, :out; The `:in` and `:out` are exactly the same as `:in(True)` `:out(True)` run "cat", "-n", :in(True), :out(True); Which is also the same as `in =

Re: what type $in,$out and $err is

2018-10-28 Thread Brandon Allbery
It takes Any — and quite a few more things than are currently documented, like IIRC filenames, and looks at the actual type passed to decide what to do with it. On Sun, Oct 28, 2018 at 3:31 PM Xiao Yafeng wrote: > I'm curious about what type of $in is on Proc class. As described in > perl6doc: >