mosop
mosop
I like to implement: ``` command --option subcommand --suboption ``` and the subcommand command can get the --option option.
As I remember, I could find API documentation for macro nodes under Crystal namespace. Is it deleted or moved? Thank you.
``` crystal def foo(**options) options.to_h end foo # Syntax error in expanded macro: macro_XXX: for empty hashes use '{} of KeyType => ValueType' ``` I would like to fix it,...
The below code occurs an error like "expecting token '%}', not 'NEWLINE'". ``` crystal {% if @type.superclass.class_name == "Foo" # blah blah else # ... end %} ``` Is this...
Hi. Do you have any plans to implement the full YAML 1.2 specification in the standard library?
``` crystal module Mod(T) macro included def self.method end end end class Klass include Mod(Nil) end Klass.method ``` It says "undefined method 'method' for Klass:Class". Crystal 0.19.0+11 [824cb8e], OS X...
I'm not familiar with it, but, probably, musl libc does not support //IGNORE suffix. my patch: ```diff diff --git a/src/iconv.cr b/src/iconv.cr index d1a824e..acd7bcb 100644 --- a/src/iconv.cr +++ b/src/iconv.cr @@ -8,7...
spec/std/string.cr and spec/std/io/io_spec.cr fail on alpine linux. Because musl libc iconv_open does not support GB2312 as a "to" argument. For example, the below code fails. ```crystal "好".encode("GB2312") # => raises...
tested on alpine linux: 3.5, crystal: 0.20.5 my patch: ```diff diff --git a/spec/std/process_spec.cr b/spec/std/process_spec.cr index 31b530f..4ee1e8f 100644 --- a/spec/std/process_spec.cr +++ b/spec/std/process_spec.cr @@ -178,7 +178,7 @@ describe Process do File.exists?(tmpfile.path).should be_false...
In Crystal 0.23.1, ```crystal class Parent macro foo end end class Child < Parent def foo end end class GrandChild < Child foo end ``` causes the compile error: ```...