home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / acorn / tech / 67 next >
Encoding:
Internet Message Format  |  1992-08-23  |  3.8 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!mcg
  2. From: mcg@waikato.ac.nz
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: New Language/Compiler (ideas wanted)
  5. Message-ID: <1992Aug24.103407.10312@waikato.ac.nz>
  6. Date: 24 Aug 92 10:34:07 +1200
  7. References: <1195@grun.is> <1992Aug17.132929.10141@waikato.ac.nz>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 73
  10.  
  11. In article <1992Aug17.132929.10141@waikato.ac.nz>, bwc@waikato.ac.nz (Ug!) writes:
  12. > Halfdan Ingvarsson asks for ideas on new language features.
  13. > (deep breath)  Hokay, here we go:
  14. > Firstly, have a look at Oberon-2.  The descriptions are available by anonymous
  15. > ftp from ETH.  Some really neat ideas there.
  16. > 1.  Generics.  Any new language worth its salt should consider this issue.  One
  17. >     of the reasons why Ada beats C++ for productivity is that generics beats
  18. >     object oriented for reuseability.  (the other reasons have to do with the
  19. >     great tools that come with Ada, and the strict licensing scheme which
  20. >     ensures compatability)
  21. > 2.  Subranges.  At some stage I'd love to build a language which has *no*
  22. >     concept of fixed data-type sizes.  Of course, you could then have a
  23. >     library routine which defines a type Word (much like Modula-2's
  24. >     System.WORD) and Byte and so forth.  However, this is entirely a
  25. >     portability concept, and so is not really applicable to what you are trying
  26. >     to do, but even so, just think how nice it would be to be able to use
  27. >     320-bit integers...
  28. > 3.  Overloading.  Ada has this, without being Object-oriented.  This coupled
  29. >     with generics gives you better reuseability than object instantiation.
  30. >     Both functional and operator please.  Don't worry about redefining
  31. >     operator precedence:  leave 'em as they are, and folks can work with that.
  32. > 4.  One of the things I would like is a 'string' concept, which automatically
  33. >     handles groups (arrays) of items which grow and shrink - maybe a 'bag'.  In
  34. >     this way you could have a 'STRING OF CHARACTER' or a 'STRING OF INTEGER'.
  35. >     'STRING', like 'ARRAY' allocates space, but it can be resized etc
  36. >     dynamically.  Useful.
  37. > 5.  Projection.  See previously mentioned Oberon-2.  This completely redefines
  38. >     the way inheritance and stuff works.  Keeps the language procedural rather
  39. >     than data-driven, which is nice for those of us who think in processes, not
  40. >     in data-flows.  Coupled with generics, should make life very interesting.
  41. >     Also, by combining with overloading gives similar capability to object-
  42. >     oriented, although dynamic binding might be tricky to fudge.
  43. > 6.  Packages or Modules or *something*!  Preferably coping automatically with
  44. >     linking (C... yuck!).
  45. > 7.  No limitations like 'strings can only be up to 255 in length'.  Yuck!
  46. > 8.  There is no number 8.
  47. > 9.  Can link up with C, including C I/O.
  48. > 10. A good 'ABSTRACT' (or opaque) data type.  Modula-2 almost does it, but not
  49. >     quite, since it limits the size of its opaque types to the size of a
  50. >     pointer.  Ada goes one better, but then requires you to say what's actually
  51. >     in it, so what's the point?  Opaque data types enable data-hiding (great
  52. >     for abstraction purposes), and are all too often very useful.  In C, I
  53. >     kludge this by passing back a pointer to the type as a 'void *'.
  54.  
  55.   11. Intelligent type casting. 
  56.  
  57.   12. Library orientated (ties in with 6).
  58.  
  59.  
  60. From Martin Glanvill        (mcg@waikato.ac.nz)
  61.  
  62. Dept. Maths                                   @@@@@/|@
  63. University of Waikato                              @@@@/ |@
  64. Hamilton                                  @@@/__|@
  65. New Zealand                                  @@/   |@
  66.                                       @@@@@@@@
  67.  
  68. ----------------****=====| A quote to make your day |======****-----------------
  69. Always tell him he is handsome, especially if he is not.
  70. -------------------------------------------------------------------------------
  71.