Changes between Version 8 and Version 9 of Migrating to NQPrx

Show
Ignore:
Timestamp:
11/18/09 09:27:12 (5 years ago)
Author:
Austin_Hastings
Comment:

Default parameter initialization

Legend:

Unmodified
Added
Removed
Modified
  • Migrating to NQPrx

    v8 v9  
    2828=== Stricter whitespace rules around keywords === 
    2929 
    30   `if $condition { } else {}` now requires spaces around the `else` keyword 
     30`if $condition { } else {}` now requires spaces around the `else` keyword 
     31 
     32=== Parameter initialization === 
     33 
     34A parameter like: `sub foo( :@tags? )` -- that is, an optional, named, array -- is now initialized to an empty RPA if no value was provided. (Previously, the default value was Undef.) This merges two possible cases from the caller side: not specifying a value, and specifying an empty array. Code that depends on this will have to change. 
     35 
     36This same type of change is likely present for hashes, as well. I'm guessing this applies to any hash/array parameter.