Quinton Miller

Results 338 comments of Quinton Miller

`#each_name` sounds reasonable, but I agree the method name should be changed. We now have `Regex::PCRE2#each_named_capture_group` which is pretty much the same idea. Note that you could only skip the...

It is not a constructor because it does not return the `File` instance (rather it returns whatever the yielded-to block returns). Grouping a method in the constructors section requires an...

Annotation is probably the best way to go since having a correct block type does not imply that the method actually constructs an instance. Plus the docs generator already has...

Then it might catch false positives like `Array.each_product`.

For reference, the current hierarchy is like this: (generated from `crystal tool hierarchy -E Exception src/docs_main.cr`) ``` Exception ├── ArgumentError ├── Base64::Error ├── CSV::Error | └── CSV::MalformedCSVError ├── Channel::ClosedError ├──...

I don't think raising a more specific exception type would break anything, but what about raising a less specific, or unrelated type? Let's say `JSON::SerializableError` is no longer a subclass...

Here is a list of non-Windows functions I could find that depend on the C locale: * [x] `dprintf`: Affects floating-point formatting specifiers (`%a` `%e` `%f` `%g`). Appears in `Crystal::System.print_error`,...

[`s2d.c`](https://github.com/ulfjack/ryu/blob/master/ryu/s2d.c) and [`s2f.c`](https://github.com/ulfjack/ryu/blob/master/ryu/s2f.c) from the Ryu repository seem to contain replacements for `strtod` and `strtof`. I do not know whether they have their own names, or whether they are indeed...

Because the call contains named arguments, by the same the normalizer sees the second `Foo#test`, it is actually looking at something like this: ```crystal def test:blah(name : Int32, blah __temp_1...

So does that mean the workaround in https://github.com/crystal-lang/crystal/issues/4516#issuecomment-306226171 somehow does not work when targetting WASM?