I tried implementing the Greeter example 4:47 using play.crystal-lang.org/#/cr but it doesn't compile. It says that the type of the variable @name of Greeter cannot be inferred. The example of 23:03 doesn't work as well.
If you try the code from the video again as-is on that page, only set the version to v0.8.0, it will work. Otherwise, it works if you overload initialize and define it as "def initialize(name : String)" and "def initialize(name : Int32)".
This language could be very widely used in game development considering you can pull of ray tracing with way less lines of code at breakneck speeds. I really hope to see it gain more support!
I had no idea what Crystal Reports are until you told me. For me, when I hear "Crystal", it always means a programming language. I guess it's just matter of what you heard before :P I could say the same about "Go" language. When I hear "Go" I just keep walking, not thinking about programming language :D
Good work Guys !!
Missed opportunity to name the file extension .cry
I tried implementing the Greeter example 4:47 using play.crystal-lang.org/#/cr but it doesn't compile. It says that the type of the variable @name of Greeter cannot be inferred. The example of 23:03 doesn't work as well.
If you try the code from the video again as-is on that page, only set the version to v0.8.0, it will work. Otherwise, it works if you overload initialize and define it as "def initialize(name : String)" and "def initialize(name : Int32)".
This language could be very widely used in game development considering you can pull of ray tracing with way less lines of code at breakneck speeds. I really hope to see it gain more support!
Crystal is a bad name for this language. Better to change because when people ear Crystal think in Crystal reports, incuding Google.
I had no idea what Crystal Reports are until you told me. For me, when I hear "Crystal", it always means a programming language. I guess it's just matter of what you heard before :P I could say the same about "Go" language. When I hear "Go" I just keep walking, not thinking about programming language :D