Oct 11
Jolle Carlestam Allowing null -> value to work
Oct 11, 2013; 21:45
Jolle Carlestam
Allowing null -> value to work
One good thing about maps are that when you do
#mymap -> find('key')
it will always work. Not always return a value, but it won't trow a hissyfit regardless if the key is found.
If you want to do the same with a staticarray or array the code gets much more complicated
#myarray -> find('key') -> first -> value
will only work if the key is found. If not it will cause an error:
Definition Not Found: null->value()
Thus it would be great with a way to convert say a tie or a staticarray to a map with one swift stroke.
Or to allow null->value() to work, and return a void.
Wonder if that could have drawbacks?
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Oct 16
Bil Corry Re: Allowing null -> value to work
Oct 16, 2013; 10:58
Bil Corry
Re: Allowing null -> value to work
Oct 16
Steve Upton Re: Allowing null -> value to work
Oct 16, 2013; 12:13
Steve Upton
Re: Allowing null -> value to work
Oct 16
Bil Corry Re: Allowing null -> value to work
Oct 16, 2013; 21:52
Bil Corry
Re: Allowing null -> value to work
Oct 16
Ke Carlton Re: Allowing null -> value to work
Oct 16, 2013; 20:59
Ke Carlton
Re: Allowing null -> value to work
Oct 16
Ke Carlton Re: Allowing null -> value to work
Oct 16, 2013; 21:00
Ke Carlton
Re: Allowing null -> value to work
Oct 17
Jolle Carlestam Re: Allowing null -> value to work
Oct 17, 2013; 04:07
Jolle Carlestam
Re: Allowing null -> value to work