TIP 417: Use Explicit Option Names for "file tempfile"

Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2017 Conference, Houston/TX, US, Oct 16-20
Send your abstracts to tclconference@googlegroups.com
by Aug 21.
Author:		Christophe Curis <christophe.curis@free.fr>
State:		Draft
Type:		Project
Tcl-Version:	8.7
Vote:		Pending
Created:	16-Nov-2012
Post-History:
Keywords:	Tcl, future expansion, extensibility

Abstract

This TIP proposes altering the way in which optional arguments are specified to file tempfile (see [210]) to make them easier to understand and extend in the future.

Rationale

The current documentation for file tempfile states that there are two optional arguments using a fixed order. This has some limits:

Switching to option/value format will make the optional arguments easier to understand.

Proposal

The syntax of the command would be changed to:

file tempfile ?options...?

with supported options:

This syntax would allow:

Reference Implementation

No implementation is available now, but the change is probably not complex; the priority have been placed on raising the subject before the release of the final 8.6 version of Tcl.

Copyright

This document has been placed in the public domain.

History