Re: Multi-assign

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

Does a dollar make sense? Should we use a different symbol? Should we just put extra commas in?

I dislike extra commas. They are hard to read, easy to get wrong and can make you look for hours for bad code. What about a - ?

{ -, last } = parse_name("John Doe") 

I know extra commas are used for parameters but I'd like to see that be deprecated and whatever we decide here be used there as well.

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu