Boo
  1. Boo
  2. BOO-1203

Generic array/matrix builtins

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Runtime (Boo.Lang)
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      Add (no removal) generic array builtins such as :

      bytes = array[of byte](128)
      dataBytes = array[of byte](some_byte_enumerable)
      
      m = matrix[of float](4, 4)
      

      Advantages:

      • more readable syntax (imho at least) than: array(Type, count)
      • no casts
      • much faster implementation possible when building an array with a T* or a collection.

        Issue Links

          Activity

          Hide
          Cedric Vivier added a comment -

          Landed in rev. 3307

          Show
          Cedric Vivier added a comment - Landed in rev. 3307

            People

            • Assignee:
              Cedric Vivier
              Reporter:
              Cedric Vivier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: