Open SpencerPark opened 7 years ago
With namespace changes in 3.0, return
can be a value and a namespace. This implementation makes return -> value
a great candidate for return values. Auxiliary values could potentially be put into a return
namespace which (with the save
keyword) would be included in the calling scope?
Also implemented is the explicit casting for calls inside melodies/chords/rhythms.
The function call syntax is very nice to read
but is not realistic for using return values in expressions.
Return default
Similar to javascript's export construct, MellowD could specify a default return value that is stored in the root of the saved object.
that is called like this
It could also just support assigning a value to
return
since blocks of memory and values are actually stored separately. For example the above would bereturn -> [a, b, c]
instead ofreturn.default -> [a, b, c]
.Possible call improvements
What do we do for numbers, beats, notes? A generic