Re: Garbage Collection (Real Features)
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jun 29, 2005
- 477 views
On Tue, 28 Jun 2005 12:54:56 -0700, Vincent <guest at RapidEuphoria.com> wrote: >Here are some "REAL" feature ideas: Needless to say, I cannot resist categorising them: > These need full design & consultation: [hurrumpgh? ] >* C++ style local & global namespaces >* Current namespace system improvement (Matt's idea) My top wishes: >* Specific warning ignores (without warning xxxxx,xxx,...) >* Forward-referencing of routines >* Interpreter version routine >* The use of '=' in conditional statements Plus: include file enhancements, specifically the ability to install eg win32lib +20 in a subdirectory without having to edit win32lib.ew, along with the automatic resolution of duplicate globals, when the intent is blatantly obvious, from include &/or directory structure. Would be nice: >* 'Constant' declaration to be scoped at routine-level >* Multiple items to be on the left hand side of an assignment I might find use for: >* Built-In absolute value routine >* Code blocks within routines with their own scope >* Assignment on declaration >* Named loops and blocks >* Pass parameters by reference >* Specify non-contiguous elements in slices >* Specify slice elements via a sequence >* Specify sequence indexing and slicing on function calls >* Swap elements built-in routine >* Insert Elements built-in routine >* Delete Elements built-in routine >* Block commenting >* Built-In routine to delete and insert elements into a sequence >* Extract Elements Expression >* Case/Switch Statement >* Memory mapped data (C structures/unions) I abstain: >* Duplicated Constant Declarations >* Assignment as an Expression >* Limited GOTO construct I vote against: >* 'Continue' Interation' keyword >* 'Repeat Current Iteration' keyword >* Desequencing operator >* Return value from a function can be be ignored >* Expression evaluation: eval() >* Run-time metadata access for programmers >* Dynamic variable routines >* Macros I vote strongly against: >* Forward referencing of data (variables and constants) >* 32 bit integers >* 32 bit pointers >* Char datatype >* String datatype >* Fixed length vectors (arrays) >* Data type specifier of vector declarations >* Heterogenous fixed-length vectors (structures) >* Display format specified at declaration time >* Additional metadata for variables Regards, Pete