crystal-lang Questions
1
Solved
I've read through the "C bindings" in the tutorial but I'm a novice at C stuff.
Could someone please let me know if a Crystal program can be built as a static library to link to, and if so could y...
Augury asked 2/10, 2015 at 22:21
2
Solved
I have a JSON response which is an Array of Hash:
[{"project" => {"id" => 1, "name" => "Internal"},
{"project" => {"id" => 2, "name" => "External"}}]
My code looks like this:
...
Functional asked 13/9, 2015 at 17:6
1
Solved
I am trying to convert a Ruby program to Crystal.
And I am stuck with missing string.to_sym
I have a BIG XML file, which is too big to fit in memory.
So parsing it all is out of question. Fortunate...
Atonement asked 12/9, 2015 at 7:17
1
Solved
I want the Crystal equivalent of this:
clazz = 'ExampleClass'.constantize # Rails
clazz = Object.const_get('ExampleClass') # pure Ruby
obj = clazz.new
Lorgnon asked 28/8, 2015 at 14:34
1
I want to pass arguments to a Proc like using splat, but it returns an error wrong number of block arguments (1 for 0)
$callbacks = {} of String => Array(->)
def add_callback(event, &bl...
Pewter asked 18/7, 2015 at 20:12
1
Solved
If I have a file that's meant to be required by other files, is it possible to get the absolute filepath of the file that's requiring it?
So if lib_file.cr has a macro that is meant to be called b...
Athalia asked 6/7, 2015 at 0:40
2
Solved
I'm having some hard time learning the idea behind Fibers\coroutines and the implementation in Crystal.
I hope this is the right place to ask this, I'll totally accept a "not here" answer :)
This...
Melli asked 15/6, 2015 at 19:34
2
Solved
Like many others, I always hold true that "A pure compiler will never exist for Ruby because the language is far too dynamic for a static compiler to work."
But I recently stumbled upon thes...
Logistics asked 27/2, 2012 at 10:35
© 2022 - 2024 — McMap. All rights reserved.