[Swift-devel] More OOPS feature requests

Mihael Hategan hategan at mcs.anl.gov
Wed Apr 15 14:47:59 CDT 2009


On Wed, 2009-04-15 at 14:39 -0500, Michael Wilde wrote:
> I'd like to raise 2 initial requests for language or runtime change as a 
> result of the oops work.
> 
> - handling long in/out file lists via a file to wrapper when they get to 
> long (already offered on the list by Ben, so this seems doable. Should I 
> file an bugzilla req for this?)
> 
> - global variables: are these feasible and/or desirable in oops?
> 
> The motivation for this particular case was to fetch the @arg values (4 
> to 6 now, but growing) all in the "main" proc, but have their values 
> available to several levels of deeper proc calls, without passing all 
> the values down all the way.
> 
> What the code does now is fetch the @args at multiple levels, which I 
> thought was not elegant.  I suspect that is further use for globals in 
> normal coding style.
> 
> So Im wondering what the view on this is, both from a language design 
> view and from difficulty of implementing them. Has anyone else wished 
> for globals?

Some form of lexically scoped constants are probably a good idea.





More information about the Swift-devel mailing list