Boo

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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: