General

Profile

coorasse (Alessandro Rodi)

  • Login: coorasse
  • Registered on: 04/10/2018
  • Last sign in: 04/10/2018

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

04/18/2018

10:11 AM Ruby Feature #14672: Introduce a Date.safe_parse method
As pointed out by @ahorek, is not really good to use, raise, catch exceptions in ruby because yes...they are slow.
A one line rescue is what I used in the past, but it feels hacky and is a catch-all rescue which is never a good approach...
coorasse (Alessandro Rodi)

04/10/2018

07:19 AM Ruby Feature #14672 (Open): Introduce a Date.safe_parse method
This feature request is about a Date.safe_parse method.
The method should call the original Date.parse method but avoid raising an exception and returning a fallback value instead.
An implementation in ActiveSupport has been proposed h...
coorasse (Alessandro Rodi)

Also available in: Atom