General

Profile

AaronLasseigne (Aaron Lasseigne)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 7 7

Activity

02/13/2019

04:44 AM Ruby Bug #15597: syscall not returning true from private_method_defined?
I'm on MacOS 10.14.3 and yes it does raise a `NotImplementedError`. Even so, shouldn't it be shown as a private method? AaronLasseigne (Aaron Lasseigne)

02/10/2019

08:28 PM Ruby Bug #15597 (Rejected): syscall not returning true from private_method_defined?
`syscode` is a private method on `Object` but when checked with `private_method_defined?` it returns `false`.
Ruby 2.6.1
```
irb(main):001:0> Object.new.private_methods.sort.select { |pm| !Object.private_method_defined?(pm) }
=> [:...
AaronLasseigne (Aaron Lasseigne)

02/15/2018

04:04 AM Ruby Feature #14362: use BigDecimal instead of Float by default
yugui,
> Why do you think they are not familiar with floating-point values like IEEE754?
In my experience, most developers are not intimately familiar with the details of floating point implementations. I have witnessed a number of...
AaronLasseigne (Aaron Lasseigne)

02/07/2018

11:05 PM Ruby Feature #14362: use BigDecimal instead of Float by default
I don't think anyone is arguing that this fixes everything or is "a magic bullet". I think most developers are familiar with the inaccurate nature of division on computers. Most would expect that "1/3" will be something like "0.33". Howe... AaronLasseigne (Aaron Lasseigne)

01/16/2018

05:53 PM Ruby Feature #14362: use BigDecimal instead of Float by default
That's absolutely true. However, it's much less likely and I would say less surprising than the issues you find with a `Float`. Switching to use `Rational` where possible is an option but felt like a step too far. In short, it's not perf... AaronLasseigne (Aaron Lasseigne)

01/15/2018

09:32 PM Ruby Feature #14362 (Rejected): use BigDecimal instead of Float by default
When writing a decimal the default type assigned is `Float`:
```ruby
> 1.2.class
=> Float
```
This is great for memory savings and for application speed but it comes with accuracy issues:
```ruby
> ...
=> 12994.999999999998
...
AaronLasseigne (Aaron Lasseigne)

12/28/2017

11:11 PM Ruby Bug #14257 (Closed): the chomp option removes newlines in additon to the provided separator for String#each_line and String#lines
I'm not entirely sure this is a bug but I had a hard time finding anything that indicated that the change was on purpose.
The `chomp` option would remove the provided separator from each line. Now it does that and it also removes newl...
AaronLasseigne (Aaron Lasseigne)

06/02/2017

04:13 PM Ruby Feature #13625 (Rejected): BigDecimal short form / shorthand
Add a shorthand for creating a BigDecimal, similar to how 1.2r creates a Rational.
~~~ ruby
> 3.1d
=> #<BigDecimal:7fde9def71c0,'0.31E1',18(18)>
~~~
AaronLasseigne (Aaron Lasseigne)

04/25/2017

02:49 PM Ruby Feature #13495: add Range#count as an alias to Range#size
> PS: "Enumerable does not have size" is incorrect. Enumerable have a size method, although it may return nil if the result can not be calculated lazily.
I don't think that's true. The docs don't show it and it doesn't get added when ...
AaronLasseigne (Aaron Lasseigne)

04/24/2017

06:29 PM Ruby Feature #13495: add Range#count as an alias to Range#size
I should have considered that. I was focused on the use case at hand. :(
I still feel like there needs to be a way to do this that's safe. Perhaps the solution is adding `Enumerable#size` and letting `size` be the option that's safe f...
AaronLasseigne (Aaron Lasseigne)

Also available in: Atom