Ahh so it's basically what they called the Elvis operator in Groovy,
renamed as try. I kinda liked it when I did Grails for a bit, and
thought it'd be useful in ruby too.

Linguistically it reads well as try, but can't help thinking it'll
confuse my brain with Java's try/catch exception handling. Interesting
evolution ey.

----- Original message -----
From: Tekin Suleyman <[email protected]>

I found this new safe navigation operator for Ruby “interesting”:
https://bugs.ruby-lang.org/issues/11537

Basically the rails try method baked into Ruby. I’m not sure I like the
syntax, but it looks like it’s coming to a future version of Ruby.

> On 30 Oct 2015, at 09:55, Ian Moss <[email protected]> wrote:
>
> Hey,
>
> I thought it'd be great to know what my fellow Manchester rubyists
> have found interesting this week...
>
> For me, I did the standard 'JSON parsing is easy thing' when consuming
> an API recently. And it is. Until it isn't. I was reminded that
> there's multiple ways in ruby to parse JSON by this great post:
> https://www.twilio.com/blog/2015/10/4-ways-to-parse-a-json-api-with-ruby.html
>
> What have you found interesting this week? Could be a blog post. A new
> or old, gem, that you love. Doesn't have to be uber advanced as
> there's as many people new to ruby on the list, as there are working
> with ruby regularly.
>
> Looking forward to seeing you all at the next meetup, Ian.
>
> --
> Ian Moss http://196destinations.com - capturing your travel dreams &
> helping you get on the plane! http://twitter.com/oceanician //
> http://www.linkedin.com/in/alteris // 07790450877
>
> --
> You received this message because you are subscribed to the Google
> Groups "North West Ruby User Group (NWRUG)" group. To unsubscribe from
> this group and stop receiving emails from it, send an email to nwrug-
> [email protected]. To post to this group, send an
> email to [email protected]. Visit this group at
> http://groups.google.com/group/nwrug-members. For more options, visit
> https://groups.google.com/d/optout.




-- 

You received this message because you are subscribed to the Google Groups 
"North West Ruby User Group (NWRUG)" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].

To post to this group, send email to [email protected].

Visit this group at http://groups.google.com/group/nwrug-members.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"North West Ruby User Group (NWRUG)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/nwrug-members.
For more options, visit https://groups.google.com/d/optout.

Reply via email to