[Swift-devel] Re: passing types and variables in swift

Ben Clifford benc at hawaga.org.uk
Thu Oct 4 10:46:02 CDT 2007


i'd be inclined to grab the csv reading code from the csv mapper and see 
about making a @extractcsv function. It keeps code using it a little bit 
more like it would if mappers could support it, which is probably the way 
things will end up one day.

On Thu, 4 Oct 2007, Michael Wilde wrote:

> a hacky way to do this is first a loop to read the csv file into an array,
> then do a foreach over the array.
> 
> i suspect we have the constructs (with @extractint) to do this; not sure if we
> can read the CSV into an array-of-structs that we can then foreach() over. But
> even if not, this will work using parallel arrays, and probably not be too
> unpleasing.
> 
> lets try it.
> 
> On 10/4/07 10:15 AM, Ben Clifford wrote:
> > you're the second person today to talk about reading in values from csv
> > files. maybe we should implement this.
> 
> 



More information about the Swift-devel mailing list