[Swift-devel] Re: folding/sequential-while/whatever and accessing data in files
Yong Zhao
yongzh at cs.uchicago.edu
Fri Sep 7 13:55:45 CDT 2007
Just want to make a short comment that Ian once mentioned the syntax
int i<"myint.txt">;
should be valid, so you don't need the weird @extractint function. Mappers
should be able to extract swift structures from any kind of formats. I was
using CSVMapper to extract information in the montage workflow to drive
the execution depending on intermediate files.
Yong.
On Fri, 7 Sep 2007, Michael Wilde wrote:
> extractint is nice in the sense that any file produced by an app can be
> used to pass a (single?) return value.
>
> alternatively the RETVAL declaration makes it "seem" as if any function
> can return any number of scalar/list values. This hides the value
> passing as part of the calling mechanism for atomic functions.
>
> - mike
>
> Ben Clifford wrote:
> > it was fairly easy to make an @extactint function that lets you do this:
> >
> > type file;
> > file f <"myint.txt">;
> > print(@extractint(f) + 1);
> >
> > However, that pretty much introduces a separate description of the file
> > contents (by using the extractint function) distinct from the mapping and
> > type system. ick.
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>
More information about the Swift-devel
mailing list