Quinton Miller
Quinton Miller
On Discord it was asked how to obtain the starting byte index of a `Regex` match of a `String`: ```crystal str = "😂x" pattern = /x/ str.char_index_to_byte_index(str.index!(pattern)) # => 4...
The following snippet leads to an infinite recursion: ```crystal fun foo : Int32 1 end fun foo : Int32 previous_def &+ 2 end foo # Stack overflow (e.g., infinite or...
```crystal {{ ReferenceStorage.ancestors }} # => [Value, Object, Value, Object] {{ ReferenceStorage(Regex).ancestors }} # => [Value, Object, Value, Object] ``` This doesn't seem to be intended, or at least I...
Using [1.9.0](https://github.com/crystal-lang/crystal/releases/tag/1.9.0) as an example, the files inside `crystal-1.9.0-1-linux-x86_64-bundled.tar.gz` and `crystal-1.9.0-docs.tar.gz` have an extra leading `./`, whereas `crystal-1.9.0-1-linux-x86_64.tar.gz` and `crystal-1.9.0-1-darwin-universal.tar.gz` don't: ```sh $ tar tf crystal-1.9.0-1-linux-x86_64-bundled.tar.gz | head ./ ./crystal-1.9.0-1/...
The `local` keyword is not 100% portable if `/bin/sh` is indeed the Bourne Shell, or if it is an alias to ksh93 (such as on Solaris / illumos), which uses...
The official Apt repositories only serve the 3 most recent major versions, while the volunteer-built packages are incomplete and of inconsistent quality, so the best solution is to build LLVM...
Closes #14556