General

Profile

why-capslock-though (Alexander Moore-Niemi)

  • Login: why-capslock-though
  • Email: bigbadmath@gmail.com
  • Registered on: 08/28/2014
  • Last sign in: 10/09/2016

Issues

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

Activity

10/09/2016

02:30 PM Ruby Feature #6284: Add composition for procs
I wrote a gem with a C extension of `Proc#compose`: https://github.com/mooreniemi/proc_compose#usage
What motivated me was `map f (map g xs) = map (f . g) xs`, and what I still don't understand (being a newbie to extending Ruby or und...
why-capslock-though (Alexander Moore-Niemi)

12/03/2014

03:32 AM Ruby Feature #7511: short-circuiting logical implication operator
to be precise, implies is a derived operator, not a core one.
racket has this operator, as does eiffel, which supplies it to, afaik, help make design by contract easier (targeting assertions as a core responsibility of the language)
...
why-capslock-though (Alexander Moore-Niemi)

08/28/2014

02:44 PM Ruby Misc #10178: refinements unactivated within refine block scope?
I had posted some more code but remembered "send" doesn't apply yet! Sorry for my confusion. Any plans on indirect method access? why-capslock-though (Alexander Moore-Niemi)
01:33 PM Ruby Misc #10178: refinements unactivated within refine block scope?
Nobuyoshi Nakada wrote:
> In general, the scope inside a method definition is different from outside.
> ...
So I was correct, in that `refine` invokes a different scope where the refinements aren't activated? Ok, cool.
That's kind o...
why-capslock-though (Alexander Moore-Niemi)
03:03 AM Ruby Misc #10178: refinements unactivated within refine block scope?
Here is an executable version of what I was roughing out above, I apologize for not vetting it beforehand to prevent confusion:
~~~ruby
require 'active_support/core_ext'
module A
refine Time do
def weekday
self.strfti...
why-capslock-though (Alexander Moore-Niemi)
02:50 AM Ruby Misc #10178: refinements unactivated within refine block scope?
Nobuyoshi Nakada wrote:
> I can't get your point.
> ...
Yes, I mistakenly left out the "do" after `refine ActiveSupport::Time` (which should be `ActiveSupport::TimeWithZone`) and `refine Time`, with it the code does indeed work, and my...
why-capslock-though (Alexander Moore-Niemi)
02:10 AM Ruby Misc #10178 (Closed): refinements unactivated within refine block scope?
I doubt I am seeing a bug, but I was hoping someone could clarify for me the reason why I am seeing what I see. I tried pouring over the spec and wasn't quite able to pin it down.
My use case of refinements is not the normal one, so t...
why-capslock-though (Alexander Moore-Niemi)

Also available in: Atom