TIP #252: Add New 'string' Command Options


TIP:252
Title:Add New 'string' Command Options
Version:$Revision: 1.4 $
Author:Brian Schmidt <contact at schmidtsrus dot net>
State:Rejected
Type:Project
Tcl-Version:8.6
Vote:Done
Created:Tuesday, 28 June 2005

Abstract

This TIP proposes moving several existing string-related commands to be options in the existing top-level string command.

Rationale

There is an existing top-level string command already. However, there are other existing top-level string-related commands that for consistency should be options in the existing string command.

These additional string command options would further centralize all string-related commands, making it easier for new users to see all the related string commands.

Specification

Additional string command options would be added utilizing existing top-level commands, using the following syntax:

string split         ;equivalent to split
string format        ;equivalent to format
string scan          ;equivalent to scan
string subst         ;equivalent to subst

Each represents the existing command that is commented. The arguments to each would remain what the current command takes.

The old commands could then potentially be eventually deprecated:

split
format
scan
subst

Copyright

This document has been placed in the public domain.


Powered by Tcl[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]

TIP AutoGenerator - written by Donal K. Fellows